< Summary

Information
Class: Elsa.Persistence.EFCore.PostgreSql.Migrations.Tenants.TenantsElsaDbContextModelSnapshot
Assembly: Elsa.Persistence.EFCore.PostgreSql
File(s): /home/runner/work/elsa-core/elsa-core/src/modules/Elsa.Persistence.EFCore.PostgreSql/Migrations/Tenants/TenantsElsaDbContextModelSnapshot.cs
Line coverage
0%
Covered lines: 0
Uncovered lines: 32
Coverable lines: 32
Total lines: 54
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/elsa-core/elsa-core/src/modules/Elsa.Persistence.EFCore.PostgreSql/Migrations/Tenants/TenantsElsaDbContextModelSnapshot.cs

#LineLine coverage
 1// <auto-generated />
 2using Elsa.Persistence.EFCore.Modules.Tenants;
 3using Microsoft.EntityFrameworkCore;
 4using Microsoft.EntityFrameworkCore.Infrastructure;
 5using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
 6using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata;
 7
 8#nullable disable
 9
 10namespace Elsa.Persistence.EFCore.PostgreSql.Migrations.Tenants
 11{
 12    [DbContext(typeof(TenantsElsaDbContext))]
 13    partial class TenantsElsaDbContextModelSnapshot : ModelSnapshot
 14    {
 15        protected override void BuildModel(ModelBuilder modelBuilder)
 16        {
 17#pragma warning disable 612, 618
 018            modelBuilder
 019                .HasDefaultSchema("Elsa")
 020                .HasAnnotation("ProductVersion", "8.0.12")
 021                .HasAnnotation("Relational:MaxIdentifierLength", 63);
 22
 023            NpgsqlModelBuilderExtensions.UseIdentityByDefaultColumns(modelBuilder);
 24
 025            modelBuilder.Entity("Elsa.Common.Multitenancy.Tenant", b =>
 026                {
 027                    b.Property<string>("Id")
 028                        .HasColumnType("text");
 029
 030                    b.Property<string>("Configuration")
 031                        .IsRequired()
 032                        .HasColumnType("text");
 033
 034                    b.Property<string>("Name")
 035                        .IsRequired()
 036                        .HasColumnType("text");
 037
 038                    b.Property<string>("TenantId")
 039                        .HasColumnType("text");
 040
 041                    b.HasKey("Id");
 042
 043                    b.HasIndex("Name")
 044                        .HasDatabaseName("IX_Tenant_Name");
 045
 046                    b.HasIndex("TenantId")
 047                        .HasDatabaseName("IX_Tenant_TenantId");
 048
 049                    b.ToTable("Tenants", "Elsa");
 050                });
 51#pragma warning restore 612, 618
 052        }
 53    }
 54}