< Summary

Line coverage
100%
Covered lines: 126
Uncovered lines: 0
Coverable lines: 126
Total lines: 170
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/20260528165924_AddDataEntityConcurrencyStamp.cs

#LineLine coverage
 1using Microsoft.EntityFrameworkCore.Migrations;
 2
 3#nullable disable
 4
 5namespace ProjectTemplate.Infrastructure.Data.Migrations;
 6
 7/// <inheritdoc />
 8public partial class AddDataEntityConcurrencyStamp : Migration
 9{
 10    /// <inheritdoc />
 11    protected override void Up(MigrationBuilder migrationBuilder)
 12    {
 213        migrationBuilder.AddColumn<string>(
 214            name: "ConcurrencyStamp",
 215            table: "ExternalLoginAccounts",
 216            type: "TEXT",
 217            maxLength: 64,
 218            nullable: false,
 219            defaultValue: "");
 20
 221        migrationBuilder.AddColumn<string>(
 222            name: "ConcurrencyStamp",
 223            table: "AuditRecords",
 224            type: "TEXT",
 225            maxLength: 64,
 226            nullable: false,
 227            defaultValue: "");
 228    }
 29
 30    /// <inheritdoc />
 31    protected override void Down(MigrationBuilder migrationBuilder)
 32    {
 233        migrationBuilder.DropColumn(
 234            name: "ConcurrencyStamp",
 235            table: "ExternalLoginAccounts");
 36
 237        migrationBuilder.DropColumn(
 238            name: "ConcurrencyStamp",
 239            table: "AuditRecords");
 240    }
 41}

/home/runner/work/NetCoreApplicationTemplate/NetCoreApplicationTemplate/src/ProjectTemplate.Infrastructure/Data/Migrations/20260528165924_AddDataEntityConcurrencyStamp.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("20260528165924_AddDataEntityConcurrencyStamp")]
 15    partial class AddDataEntityConcurrencyStamp
 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>("ConcurrencyStamp")
 234                        .IsConcurrencyToken()
 235                        .IsRequired()
 236                        .HasMaxLength(64)
 237                        .HasColumnType("TEXT");
 238
 239                    b.Property<string>("CurrentValues")
 240                        .IsRequired()
 241                        .HasColumnType("TEXT");
 242
 243                    b.Property<string>("Entity")
 244                        .IsRequired()
 245                        .HasMaxLength(200)
 246                        .HasColumnType("TEXT");
 247
 248                    b.Property<string>("KeyValues")
 249                        .IsRequired()
 250                        .HasColumnType("TEXT");
 251
 252                    b.Property<string>("ModifiedBy")
 253                        .IsRequired()
 254                        .HasMaxLength(200)
 255                        .HasColumnType("TEXT");
 256
 257                    b.Property<DateTime>("ModifiedOnUtc")
 258                        .HasColumnType("TEXT");
 259
 260                    b.Property<string>("OriginalValues")
 261                        .IsRequired()
 262                        .HasColumnType("TEXT");
 263
 264                    b.Property<string>("State")
 265                        .IsRequired()
 266                        .HasMaxLength(100)
 267                        .HasColumnType("TEXT");
 268
 269                    b.HasKey("Id");
 270
 271                    b.ToTable("AuditRecords", (string)null);
 472                });
 73
 274            modelBuilder.Entity("ProjectTemplate.Infrastructure.Data.Entities.ExternalLoginAccount", b =>
 275                {
 276                    b.Property<Guid>("Id")
 277                        .HasColumnType("TEXT");
 278
 279                    b.Property<string>("ConcurrencyStamp")
 280                        .IsConcurrencyToken()
 281                        .IsRequired()
 282                        .HasMaxLength(64)
 283                        .HasColumnType("TEXT");
 284
 285                    b.Property<DateTime>("CreatedOnUtc")
 286                        .HasColumnType("TEXT");
 287
 288                    b.Property<string>("DisplayName")
 289                        .HasMaxLength(200)
 290                        .HasColumnType("TEXT");
 291
 292                    b.Property<string>("Email")
 293                        .HasMaxLength(320)
 294                        .HasColumnType("TEXT");
 295
 296                    b.Property<DateTime?>("LastLoginOnUtc")
 297                        .HasColumnType("TEXT");
 298
 299                    b.Property<Guid>("LocalUserId")
 2100                        .HasColumnType("TEXT");
 2101
 2102                    b.Property<string>("ProviderName")
 2103                        .IsRequired()
 2104                        .HasMaxLength(100)
 2105                        .HasColumnType("TEXT");
 2106
 2107                    b.Property<string>("ProviderUserId")
 2108                        .IsRequired()
 2109                        .HasMaxLength(256)
 2110                        .HasColumnType("TEXT");
 2111
 2112                    b.Property<DateTime?>("UpdatedOnUtc")
 2113                        .HasColumnType("TEXT");
 2114
 2115                    b.HasKey("Id");
 2116
 2117                    b.HasIndex("Email");
 2118
 2119                    b.HasIndex("LocalUserId");
 2120
 2121                    b.HasIndex("ProviderName", "ProviderUserId")
 2122                        .IsUnique();
 2123
 2124                    b.ToTable("ExternalLoginAccounts", (string)null);
 4125                });
 126#pragma warning restore 612, 618
 2127        }
 128    }
 129}