< Summary

Information
Class: Elsa.Persistence.EFCore.Sqlite.Migrations.Labels.LabelsElsaDbContextModelSnapshot
Assembly: Elsa.Persistence.EFCore.Sqlite
File(s): /home/runner/work/elsa-core/elsa-core/src/modules/Elsa.Persistence.EFCore.Sqlite/Migrations/Labels/LabelsElsaDbContextModelSnapshot.cs
Line coverage
0%
Covered lines: 0
Uncovered lines: 66
Coverable lines: 66
Total lines: 87
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/Labels/LabelsElsaDbContextModelSnapshot.cs

#LineLine coverage
 1// <auto-generated />
 2using Elsa.Persistence.EFCore.Modules.Labels;
 3using Microsoft.EntityFrameworkCore;
 4using Microsoft.EntityFrameworkCore.Infrastructure;
 5using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
 6
 7#nullable disable
 8
 9namespace Elsa.Persistence.EFCore.Sqlite.Migrations.Labels
 10{
 11    [DbContext(typeof(LabelsElsaDbContext))]
 12    partial class LabelsElsaDbContextModelSnapshot : 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.Labels.Entities.Label", b =>
 022                {
 023                    b.Property<string>("Id")
 024                        .HasColumnType("TEXT");
 025
 026                    b.Property<string>("Color")
 027                        .HasColumnType("TEXT");
 028
 029                    b.Property<string>("Description")
 030                        .HasColumnType("TEXT");
 031
 032                    b.Property<string>("Name")
 033                        .IsRequired()
 034                        .HasColumnType("TEXT");
 035
 036                    b.Property<string>("NormalizedName")
 037                        .IsRequired()
 038                        .HasColumnType("TEXT");
 039
 040                    b.Property<string>("TenantId")
 041                        .HasColumnType("TEXT");
 042
 043                    b.HasKey("Id");
 044
 045                    b.ToTable("Labels", "Elsa");
 046                });
 47
 048            modelBuilder.Entity("Elsa.Labels.Entities.WorkflowDefinitionLabel", b =>
 049                {
 050                    b.Property<string>("Id")
 051                        .HasColumnType("TEXT");
 052
 053                    b.Property<string>("LabelId")
 054                        .IsRequired()
 055                        .HasColumnType("TEXT");
 056
 057                    b.Property<string>("TenantId")
 058                        .HasColumnType("TEXT");
 059
 060                    b.Property<string>("WorkflowDefinitionId")
 061                        .IsRequired()
 062                        .HasColumnType("TEXT");
 063
 064                    b.Property<string>("WorkflowDefinitionVersionId")
 065                        .IsRequired()
 066                        .HasColumnType("TEXT");
 067
 068                    b.HasKey("Id");
 069
 070                    b.HasIndex("LabelId")
 071                        .HasDatabaseName("WorkflowDefinitionLabel_LabelId");
 072
 073                    b.HasIndex("TenantId")
 074                        .HasDatabaseName("WorkflowDefinitionLabel_TenantId");
 075
 076                    b.HasIndex("WorkflowDefinitionId")
 077                        .HasDatabaseName("WorkflowDefinitionLabel_WorkflowDefinitionId");
 078
 079                    b.HasIndex("WorkflowDefinitionVersionId")
 080                        .HasDatabaseName("WorkflowDefinitionLabel_WorkflowDefinitionVersionId");
 081
 082                    b.ToTable("WorkflowDefinitionLabels", "Elsa");
 083                });
 84#pragma warning restore 612, 618
 085        }
 86    }
 87}