< 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: 72
Coverable lines: 72
Total lines: 93
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", "9.0.17");
 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                        .HasMaxLength(255)
 035                        .HasColumnType("TEXT");
 036
 037                    b.Property<string>("NormalizedName")
 038                        .IsRequired()
 039                        .HasMaxLength(255)
 040                        .HasColumnType("TEXT");
 041
 042                    b.Property<string>("TenantId")
 043                        .HasColumnType("TEXT");
 044
 045                    b.HasKey("Id");
 046
 047                    b.HasIndex("TenantId", "NormalizedName")
 048                        .IsUnique()
 049                        .HasDatabaseName("IX_Label_TenantId_NormalizedName");
 050
 051                    b.ToTable("Labels", "Elsa");
 052                });
 53
 054            modelBuilder.Entity("Elsa.Labels.Entities.WorkflowDefinitionLabel", b =>
 055                {
 056                    b.Property<string>("Id")
 057                        .HasColumnType("TEXT");
 058
 059                    b.Property<string>("LabelId")
 060                        .IsRequired()
 061                        .HasColumnType("TEXT");
 062
 063                    b.Property<string>("TenantId")
 064                        .HasColumnType("TEXT");
 065
 066                    b.Property<string>("WorkflowDefinitionId")
 067                        .IsRequired()
 068                        .HasColumnType("TEXT");
 069
 070                    b.Property<string>("WorkflowDefinitionVersionId")
 071                        .IsRequired()
 072                        .HasColumnType("TEXT");
 073
 074                    b.HasKey("Id");
 075
 076                    b.HasIndex("LabelId")
 077                        .HasDatabaseName("WorkflowDefinitionLabel_LabelId");
 078
 079                    b.HasIndex("TenantId")
 080                        .HasDatabaseName("WorkflowDefinitionLabel_TenantId");
 081
 082                    b.HasIndex("WorkflowDefinitionId")
 083                        .HasDatabaseName("WorkflowDefinitionLabel_WorkflowDefinitionId");
 084
 085                    b.HasIndex("WorkflowDefinitionVersionId")
 086                        .HasDatabaseName("WorkflowDefinitionLabel_WorkflowDefinitionVersionId");
 087
 088                    b.ToTable("WorkflowDefinitionLabels", "Elsa");
 089                });
 90#pragma warning restore 612, 618
 091        }
 92    }
 93}