< Summary - Combined Code Coverage

Information
Class: NLightning.Models.Postgres.Migrations.NLightningContextModelSnapshot
Assembly: NLightning.Models.Postgres
File(s): /home/runner/work/nlightning/nlightning/src/NLightning.Models.Postgres/Migrations/NLightningContextModelSnapshot.cs
Tag: 30_15166811759
Line coverage
0%
Covered lines: 0
Uncovered lines: 19
Coverable lines: 19
Total lines: 41
Line coverage: 0%
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
BuildModel(...)100%210%

File(s)

/home/runner/work/nlightning/nlightning/src/NLightning.Models.Postgres/Migrations/NLightningContextModelSnapshot.cs

#LineLine coverage
 1// <auto-generated />
 2using Microsoft.EntityFrameworkCore;
 3using Microsoft.EntityFrameworkCore.Infrastructure;
 4using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
 5using NLightning.Models;
 6using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata;
 7
 8#nullable disable
 9
 10namespace NLightning.Models.Postgres.Migrations
 11{
 12    [DbContext(typeof(NLightningContext))]
 13    partial class NLightningContextModelSnapshot : ModelSnapshot
 14    {
 15        protected override void BuildModel(ModelBuilder modelBuilder)
 16        {
 17#pragma warning disable 612, 618
 018            modelBuilder
 019                .HasAnnotation("ProductVersion", "8.0.3")
 020                .HasAnnotation("Relational:MaxIdentifierLength", 63);
 21
 022            NpgsqlModelBuilderExtensions.UseIdentityByDefaultColumns(modelBuilder);
 23
 024            modelBuilder.Entity("NLightning.Models.NLightningContext+Node", b =>
 025                {
 026                    b.Property<long>("Id")
 027                        .ValueGeneratedOnAdd()
 028                        .HasColumnType("bigint")
 029                        .HasColumnName("id");
 030
 031                    NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<long>("Id"));
 032
 033                    b.HasKey("Id")
 034                        .HasName("pk_nodes");
 035
 036                    b.ToTable("nodes", (string)null);
 037                });
 38#pragma warning restore 612, 618
 039        }
 40    }
 41}