< 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    {
 113        migrationBuilder.AddColumn<string>(
 114            name: "ConcurrencyStamp",
 115            table: "ExternalLoginAccounts",
 116            type: "TEXT",
 117            maxLength: 64,
 118            nullable: false,
 119            defaultValue: "");
 20
 121        migrationBuilder.AddColumn<string>(
 122            name: "ConcurrencyStamp",
 123            table: "AuditRecords",
 124            type: "TEXT",
 125            maxLength: 64,
 126            nullable: false,
 127            defaultValue: "");
 128    }
 29
 30    /// <inheritdoc />
 31    protected override void Down(MigrationBuilder migrationBuilder)
 32    {
 133        migrationBuilder.DropColumn(
 134            name: "ConcurrencyStamp",
 135            table: "ExternalLoginAccounts");
 36
 137        migrationBuilder.DropColumn(
 138            name: "ConcurrencyStamp",
 139            table: "AuditRecords");
 140    }
 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
 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>("ConcurrencyStamp")
 134                        .IsConcurrencyToken()
 135                        .IsRequired()
 136                        .HasMaxLength(64)
 137                        .HasColumnType("TEXT");
 138
 139                    b.Property<string>("CurrentValues")
 140                        .IsRequired()
 141                        .HasColumnType("TEXT");
 142
 143                    b.Property<string>("Entity")
 144                        .IsRequired()
 145                        .HasMaxLength(200)
 146                        .HasColumnType("TEXT");
 147
 148                    b.Property<string>("KeyValues")
 149                        .IsRequired()
 150                        .HasColumnType("TEXT");
 151
 152                    b.Property<string>("ModifiedBy")
 153                        .IsRequired()
 154                        .HasMaxLength(200)
 155                        .HasColumnType("TEXT");
 156
 157                    b.Property<DateTime>("ModifiedOnUtc")
 158                        .HasColumnType("TEXT");
 159
 160                    b.Property<string>("OriginalValues")
 161                        .IsRequired()
 162                        .HasColumnType("TEXT");
 163
 164                    b.Property<string>("State")
 165                        .IsRequired()
 166                        .HasMaxLength(100)
 167                        .HasColumnType("TEXT");
 168
 169                    b.HasKey("Id");
 170
 171                    b.ToTable("AuditRecords", (string)null);
 172                });
 73
 174            modelBuilder.Entity("ProjectTemplate.Infrastructure.Data.Entities.ExternalLoginAccount", b =>
 175                {
 176                    b.Property<Guid>("Id")
 177                        .HasColumnType("TEXT");
 178
 179                    b.Property<string>("ConcurrencyStamp")
 180                        .IsConcurrencyToken()
 181                        .IsRequired()
 182                        .HasMaxLength(64)
 183                        .HasColumnType("TEXT");
 184
 185                    b.Property<DateTime>("CreatedOnUtc")
 186                        .HasColumnType("TEXT");
 187
 188                    b.Property<string>("DisplayName")
 189                        .HasMaxLength(200)
 190                        .HasColumnType("TEXT");
 191
 192                    b.Property<string>("Email")
 193                        .HasMaxLength(320)
 194                        .HasColumnType("TEXT");
 195
 196                    b.Property<DateTime?>("LastLoginOnUtc")
 197                        .HasColumnType("TEXT");
 198
 199                    b.Property<Guid>("LocalUserId")
 1100                        .HasColumnType("TEXT");
 1101
 1102                    b.Property<string>("ProviderName")
 1103                        .IsRequired()
 1104                        .HasMaxLength(100)
 1105                        .HasColumnType("TEXT");
 1106
 1107                    b.Property<string>("ProviderUserId")
 1108                        .IsRequired()
 1109                        .HasMaxLength(256)
 1110                        .HasColumnType("TEXT");
 1111
 1112                    b.Property<DateTime?>("UpdatedOnUtc")
 1113                        .HasColumnType("TEXT");
 1114
 1115                    b.HasKey("Id");
 1116
 1117                    b.HasIndex("Email");
 1118
 1119                    b.HasIndex("LocalUserId");
 1120
 1121                    b.HasIndex("ProviderName", "ProviderUserId")
 1122                        .IsUnique();
 1123
 1124                    b.ToTable("ExternalLoginAccounts", (string)null);
 1125                });
 126#pragma warning restore 612, 618
 1127        }
 128    }
 129}