< Summary

Information
Class: Elsa.Persistence.EFCore.Sqlite.Migrations.Tenants.TenantsElsaDbContextModelSnapshot
Assembly: Elsa.Persistence.EFCore.Sqlite
File(s): /home/runner/work/elsa-core/elsa-core/src/modules/Elsa.Persistence.EFCore.Sqlite/Migrations/Tenants/TenantsElsaDbContextModelSnapshot.cs
Line coverage
0%
Covered lines: 0
Uncovered lines: 30
Coverable lines: 30
Total lines: 50
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.Sqlite/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;
 6
 7#nullable disable
 8
 9namespace Elsa.Persistence.EFCore.Sqlite.Migrations.Tenants
 10{
 11    [DbContext(typeof(TenantsElsaDbContext))]
 12    partial class TenantsElsaDbContextModelSnapshot : ModelSnapshot
 13    {
 14        protected override void BuildModel(ModelBuilder modelBuilder)
 15        {
 16#pragma warning disable 612, 618
 017            modelBuilder
 018                .HasDefaultSchema("Elsa")
 019                .HasAnnotation("ProductVersion", "8.0.12");
 20
 021            modelBuilder.Entity("Elsa.Common.Multitenancy.Tenant", b =>
 022                {
 023                    b.Property<string>("Id")
 024                        .HasColumnType("TEXT");
 025
 026                    b.Property<string>("Configuration")
 027                        .IsRequired()
 028                        .HasColumnType("TEXT");
 029
 030                    b.Property<string>("Name")
 031                        .IsRequired()
 032                        .HasColumnType("TEXT");
 033
 034                    b.Property<string>("TenantId")
 035                        .HasColumnType("TEXT");
 036
 037                    b.HasKey("Id");
 038
 039                    b.HasIndex("Name")
 040                        .HasDatabaseName("IX_Tenant_Name");
 041
 042                    b.HasIndex("TenantId")
 043                        .HasDatabaseName("IX_Tenant_TenantId");
 044
 045                    b.ToTable("Tenants", "Elsa");
 046                });
 47#pragma warning restore 612, 618
 048        }
 49    }
 50}