< 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    {
 213        migrationBuilder.CreateTable(
 214            name: "AuditRecords",
 215            columns: table => new
 216            {
 217                Id = table.Column<Guid>(type: "TEXT", nullable: false),
 218                ModifiedBy = table.Column<string>(type: "TEXT", maxLength: 200, nullable: false),
 219                ModifiedOnUtc = table.Column<DateTime>(type: "TEXT", nullable: false),
 220                Application = table.Column<string>(type: "TEXT", maxLength: 200, nullable: false),
 221                Entity = table.Column<string>(type: "TEXT", maxLength: 200, nullable: false),
 222                State = table.Column<string>(type: "TEXT", maxLength: 100, nullable: false),
 223                KeyValues = table.Column<string>(type: "TEXT", nullable: false),
 224                OriginalValues = table.Column<string>(type: "TEXT", nullable: false),
 225                CurrentValues = table.Column<string>(type: "TEXT", nullable: false)
 226            },
 427            constraints: table => table.PrimaryKey("PK_AuditRecords", x => x.Id));
 28
 229        migrationBuilder.CreateTable(
 230            name: "ExternalLoginAccounts",
 231            columns: table => new
 232            {
 233                Id = table.Column<Guid>(type: "TEXT", nullable: false),
 234                LocalUserId = table.Column<Guid>(type: "TEXT", nullable: false),
 235                ProviderName = table.Column<string>(type: "TEXT", maxLength: 100, nullable: false),
 236                ProviderUserId = table.Column<string>(type: "TEXT", maxLength: 256, nullable: false),
 237                DisplayName = table.Column<string>(type: "TEXT", maxLength: 200, nullable: true),
 238                Email = table.Column<string>(type: "TEXT", maxLength: 320, nullable: true),
 239                CreatedOnUtc = table.Column<DateTime>(type: "TEXT", nullable: false),
 240                UpdatedOnUtc = table.Column<DateTime>(type: "TEXT", nullable: true),
 241                LastLoginOnUtc = table.Column<DateTime>(type: "TEXT", nullable: true)
 242            },
 443            constraints: table => table.PrimaryKey("PK_ExternalLoginAccounts", x => x.Id));
 44
 245        migrationBuilder.CreateIndex(
 246            name: "IX_ExternalLoginAccounts_Email",
 247            table: "ExternalLoginAccounts",
 248            column: "Email");
 49
 250        migrationBuilder.CreateIndex(
 251            name: "IX_ExternalLoginAccounts_LocalUserId",
 252            table: "ExternalLoginAccounts",
 253            column: "LocalUserId");
 54
 255        migrationBuilder.CreateIndex(
 256            name: "IX_ExternalLoginAccounts_ProviderName_ProviderUserId",
 257            table: "ExternalLoginAccounts",
 258            columns: ["ProviderName", "ProviderUserId"],
 259            unique: true);
 260    }
 61
 62    /// <inheritdoc />
 63    protected override void Down(MigrationBuilder migrationBuilder)
 64    {
 265        migrationBuilder.DropTable(
 266            name: "AuditRecords");
 67
 268        migrationBuilder.DropTable(
 269            name: "ExternalLoginAccounts");
 270    }
 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
 221            modelBuilder.HasAnnotation("ProductVersion", "10.0.8");
 22
 223            modelBuilder.Entity("ProjectTemplate.Infrastructure.Data.Entities.AuditRecord", b =>
 224                {
 225                    b.Property<Guid>("Id")
 226                        .HasColumnType("TEXT");
 227
 228                    b.Property<string>("Application")
 229                        .IsRequired()
 230                        .HasMaxLength(200)
 231                        .HasColumnType("TEXT");
 232
 233                    b.Property<string>("CurrentValues")
 234                        .IsRequired()
 235                        .HasColumnType("TEXT");
 236
 237                    b.Property<string>("Entity")
 238                        .IsRequired()
 239                        .HasMaxLength(200)
 240                        .HasColumnType("TEXT");
 241
 242                    b.Property<string>("KeyValues")
 243                        .IsRequired()
 244                        .HasColumnType("TEXT");
 245
 246                    b.Property<string>("ModifiedBy")
 247                        .IsRequired()
 248                        .HasMaxLength(200)
 249                        .HasColumnType("TEXT");
 250
 251                    b.Property<DateTime>("ModifiedOnUtc")
 252                        .HasColumnType("TEXT");
 253
 254                    b.Property<string>("OriginalValues")
 255                        .IsRequired()
 256                        .HasColumnType("TEXT");
 257
 258                    b.Property<string>("State")
 259                        .IsRequired()
 260                        .HasMaxLength(100)
 261                        .HasColumnType("TEXT");
 262
 263                    b.HasKey("Id");
 264
 265                    b.ToTable("AuditRecords", (string)null);
 466                });
 67
 268            modelBuilder.Entity("ProjectTemplate.Infrastructure.Data.Entities.ExternalLoginAccount", b =>
 269                {
 270                    b.Property<Guid>("Id")
 271                        .HasColumnType("TEXT");
 272
 273                    b.Property<DateTime>("CreatedOnUtc")
 274                        .HasColumnType("TEXT");
 275
 276                    b.Property<string>("DisplayName")
 277                        .HasMaxLength(200)
 278                        .HasColumnType("TEXT");
 279
 280                    b.Property<string>("Email")
 281                        .HasMaxLength(320)
 282                        .HasColumnType("TEXT");
 283
 284                    b.Property<DateTime?>("LastLoginOnUtc")
 285                        .HasColumnType("TEXT");
 286
 287                    b.Property<Guid>("LocalUserId")
 288                        .HasColumnType("TEXT");
 289
 290                    b.Property<string>("ProviderName")
 291                        .IsRequired()
 292                        .HasMaxLength(100)
 293                        .HasColumnType("TEXT");
 294
 295                    b.Property<string>("ProviderUserId")
 296                        .IsRequired()
 297                        .HasMaxLength(256)
 298                        .HasColumnType("TEXT");
 299
 2100                    b.Property<DateTime?>("UpdatedOnUtc")
 2101                        .HasColumnType("TEXT");
 2102
 2103                    b.HasKey("Id");
 2104
 2105                    b.HasIndex("Email");
 2106
 2107                    b.HasIndex("LocalUserId");
 2108
 2109                    b.HasIndex("ProviderName", "ProviderUserId")
 2110                        .IsUnique();
 2111
 2112                    b.ToTable("ExternalLoginAccounts", (string)null);
 4113                });
 114#pragma warning restore 612, 618
 2115        }
 116    }
 117}