< Summary

Line coverage
100%
Covered lines: 141
Uncovered lines: 0
Coverable lines: 141
Total lines: 188
Line coverage: 100%
Branch coverage
N/A
Covered branches: 0
Total branches: 0
Branch coverage: N/A
Method coverage

Feature is only available for sponsors

Upgrade to PRO version

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity Line coverage
File 1: Up(...)100%11100%
File 1: Down(...)100%11100%
File 2: BuildTargetModel(...)100%11100%

File(s)

/home/runner/work/NetCoreApplicationTemplate/NetCoreApplicationTemplate/src/ProjectTemplate.Infrastructure/Data/Migrations/20260521230436_InitialCreate.cs

#LineLine coverage
 1using Microsoft.EntityFrameworkCore.Migrations;
 2
 3#nullable disable
 4
 5namespace ProjectTemplate.Infrastructure.Data.Migrations;
 6
 7/// <inheritdoc />
 8public partial class InitialCreate : Migration
 9{
 10    /// <inheritdoc />
 11    protected override void Up(MigrationBuilder migrationBuilder)
 12    {
 113        migrationBuilder.CreateTable(
 114            name: "AuditRecords",
 115            columns: table => new
 116            {
 117                Id = table.Column<Guid>(type: "TEXT", nullable: false),
 118                ModifiedBy = table.Column<string>(type: "TEXT", maxLength: 200, nullable: false),
 119                ModifiedOnUtc = table.Column<DateTime>(type: "TEXT", nullable: false),
 120                Application = table.Column<string>(type: "TEXT", maxLength: 200, nullable: false),
 121                Entity = table.Column<string>(type: "TEXT", maxLength: 200, nullable: false),
 122                State = table.Column<string>(type: "TEXT", maxLength: 100, nullable: false),
 123                KeyValues = table.Column<string>(type: "TEXT", nullable: false),
 124                OriginalValues = table.Column<string>(type: "TEXT", nullable: false),
 125                CurrentValues = table.Column<string>(type: "TEXT", nullable: false)
 126            },
 127            constraints: table => table.PrimaryKey("PK_AuditRecords", x => x.Id));
 28
 129        migrationBuilder.CreateTable(
 130            name: "ExternalLoginAccounts",
 131            columns: table => new
 132            {
 133                Id = table.Column<Guid>(type: "TEXT", nullable: false),
 134                LocalUserId = table.Column<Guid>(type: "TEXT", nullable: false),
 135                ProviderName = table.Column<string>(type: "TEXT", maxLength: 100, nullable: false),
 136                ProviderUserId = table.Column<string>(type: "TEXT", maxLength: 256, nullable: false),
 137                DisplayName = table.Column<string>(type: "TEXT", maxLength: 200, nullable: true),
 138                Email = table.Column<string>(type: "TEXT", maxLength: 320, nullable: true),
 139                CreatedOnUtc = table.Column<DateTime>(type: "TEXT", nullable: false),
 140                UpdatedOnUtc = table.Column<DateTime>(type: "TEXT", nullable: true),
 141                LastLoginOnUtc = table.Column<DateTime>(type: "TEXT", nullable: true)
 142            },
 143            constraints: table => table.PrimaryKey("PK_ExternalLoginAccounts", x => x.Id));
 44
 145        migrationBuilder.CreateIndex(
 146            name: "IX_ExternalLoginAccounts_Email",
 147            table: "ExternalLoginAccounts",
 148            column: "Email");
 49
 150        migrationBuilder.CreateIndex(
 151            name: "IX_ExternalLoginAccounts_LocalUserId",
 152            table: "ExternalLoginAccounts",
 153            column: "LocalUserId");
 54
 155        migrationBuilder.CreateIndex(
 156            name: "IX_ExternalLoginAccounts_ProviderName_ProviderUserId",
 157            table: "ExternalLoginAccounts",
 158            columns: ["ProviderName", "ProviderUserId"],
 159            unique: true);
 160    }
 61
 62    /// <inheritdoc />
 63    protected override void Down(MigrationBuilder migrationBuilder)
 64    {
 165        migrationBuilder.DropTable(
 166            name: "AuditRecords");
 67
 168        migrationBuilder.DropTable(
 169            name: "ExternalLoginAccounts");
 170    }
 71}

/home/runner/work/NetCoreApplicationTemplate/NetCoreApplicationTemplate/src/ProjectTemplate.Infrastructure/Data/Migrations/20260521230436_InitialCreate.Designer.cs

#LineLine coverage
 1// <auto-generated />
 2using System;
 3using Microsoft.EntityFrameworkCore;
 4using Microsoft.EntityFrameworkCore.Infrastructure;
 5using Microsoft.EntityFrameworkCore.Migrations;
 6using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
 7using ProjectTemplate.Infrastructure.Data;
 8
 9#nullable disable
 10
 11namespace ProjectTemplate.Infrastructure.Data.Migrations
 12{
 13    [DbContext(typeof(ApplicationDbContext))]
 14    [Migration("20260521230436_InitialCreate")]
 15    partial class InitialCreate
 16    {
 17        /// <inheritdoc />
 18        protected override void BuildTargetModel(ModelBuilder modelBuilder)
 19        {
 20#pragma warning disable 612, 618
 121            modelBuilder.HasAnnotation("ProductVersion", "10.0.8");
 22
 123            modelBuilder.Entity("ProjectTemplate.Infrastructure.Data.Entities.AuditRecord", b =>
 124                {
 125                    b.Property<Guid>("Id")
 126                        .HasColumnType("TEXT");
 127
 128                    b.Property<string>("Application")
 129                        .IsRequired()
 130                        .HasMaxLength(200)
 131                        .HasColumnType("TEXT");
 132
 133                    b.Property<string>("CurrentValues")
 134                        .IsRequired()
 135                        .HasColumnType("TEXT");
 136
 137                    b.Property<string>("Entity")
 138                        .IsRequired()
 139                        .HasMaxLength(200)
 140                        .HasColumnType("TEXT");
 141
 142                    b.Property<string>("KeyValues")
 143                        .IsRequired()
 144                        .HasColumnType("TEXT");
 145
 146                    b.Property<string>("ModifiedBy")
 147                        .IsRequired()
 148                        .HasMaxLength(200)
 149                        .HasColumnType("TEXT");
 150
 151                    b.Property<DateTime>("ModifiedOnUtc")
 152                        .HasColumnType("TEXT");
 153
 154                    b.Property<string>("OriginalValues")
 155                        .IsRequired()
 156                        .HasColumnType("TEXT");
 157
 158                    b.Property<string>("State")
 159                        .IsRequired()
 160                        .HasMaxLength(100)
 161                        .HasColumnType("TEXT");
 162
 163                    b.HasKey("Id");
 164
 165                    b.ToTable("AuditRecords", (string)null);
 166                });
 67
 168            modelBuilder.Entity("ProjectTemplate.Infrastructure.Data.Entities.ExternalLoginAccount", b =>
 169                {
 170                    b.Property<Guid>("Id")
 171                        .HasColumnType("TEXT");
 172
 173                    b.Property<DateTime>("CreatedOnUtc")
 174                        .HasColumnType("TEXT");
 175
 176                    b.Property<string>("DisplayName")
 177                        .HasMaxLength(200)
 178                        .HasColumnType("TEXT");
 179
 180                    b.Property<string>("Email")
 181                        .HasMaxLength(320)
 182                        .HasColumnType("TEXT");
 183
 184                    b.Property<DateTime?>("LastLoginOnUtc")
 185                        .HasColumnType("TEXT");
 186
 187                    b.Property<Guid>("LocalUserId")
 188                        .HasColumnType("TEXT");
 189
 190                    b.Property<string>("ProviderName")
 191                        .IsRequired()
 192                        .HasMaxLength(100)
 193                        .HasColumnType("TEXT");
 194
 195                    b.Property<string>("ProviderUserId")
 196                        .IsRequired()
 197                        .HasMaxLength(256)
 198                        .HasColumnType("TEXT");
 199
 1100                    b.Property<DateTime?>("UpdatedOnUtc")
 1101                        .HasColumnType("TEXT");
 1102
 1103                    b.HasKey("Id");
 1104
 1105                    b.HasIndex("Email");
 1106
 1107                    b.HasIndex("LocalUserId");
 1108
 1109                    b.HasIndex("ProviderName", "ProviderUserId")
 1110                        .IsUnique();
 1111
 1112                    b.ToTable("ExternalLoginAccounts", (string)null);
 1113                });
 114#pragma warning restore 612, 618
 1115        }
 116    }
 117}