< Summary

Line coverage
98%
Covered lines: 63
Uncovered lines: 1
Coverable lines: 64
Total lines: 115
Line coverage: 98.4%
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
File 1: .ctor(...)100%11100%
File 1: Up(...)100%11100%
File 1: Down(...)100%210%
File 2: BuildTargetModel(...)100%11100%

File(s)

/home/runner/work/elsa-core/elsa-core/src/modules/Elsa.Persistence.EFCore.SqlServer/Migrations/Labels/20240610185009_V3_2.cs

#LineLine coverage
 1using Microsoft.EntityFrameworkCore.Migrations;
 2
 3#nullable disable
 4
 5namespace Elsa.Persistence.EFCore.SqlServer.Migrations.Labels
 6{
 7    /// <inheritdoc />
 8    public partial class V3_2 : Migration
 9    {
 10        private readonly IElsaDbContextSchema _schema;
 11
 12        /// <inheritdoc />
 313        public V3_2(IElsaDbContextSchema schema)
 14        {
 315            _schema = schema;
 316        }
 17
 18        /// <inheritdoc />
 19        protected override void Up(MigrationBuilder migrationBuilder)
 20        {
 21
 322        }
 23
 24        /// <inheritdoc />
 25        protected override void Down(MigrationBuilder migrationBuilder)
 26        {
 27
 028        }
 29    }
 30}

/home/runner/work/elsa-core/elsa-core/src/modules/Elsa.Persistence.EFCore.SqlServer/Migrations/Labels/20240610185009_V3_2.Designer.cs

#LineLine coverage
 1// <auto-generated />
 2using Elsa.Persistence.EFCore.Modules.Labels;
 3using Microsoft.EntityFrameworkCore;
 4using Microsoft.EntityFrameworkCore.Infrastructure;
 5using Microsoft.EntityFrameworkCore.Metadata;
 6using Microsoft.EntityFrameworkCore.Migrations;
 7using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
 8
 9#nullable disable
 10
 11namespace Elsa.Persistence.EFCore.SqlServer.Migrations.Labels
 12{
 13    [DbContext(typeof(LabelsElsaDbContext))]
 14    [Migration("20240610185009_V3_2")]
 15    partial class V3_2
 16    {
 17        /// <inheritdoc />
 18        protected override void BuildTargetModel(ModelBuilder modelBuilder)
 19        {
 20#pragma warning disable 612, 618
 321            modelBuilder
 322                .HasDefaultSchema("Elsa")
 323                .HasAnnotation("ProductVersion", "7.0.20")
 324                .HasAnnotation("Relational:MaxIdentifierLength", 128);
 25
 326            SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder);
 27
 328            modelBuilder.Entity("Elsa.Labels.Entities.Label", b =>
 329                {
 330                    b.Property<string>("Id")
 331                        .HasColumnType("nvarchar(450)");
 332
 333                    b.Property<string>("Color")
 334                        .HasColumnType("nvarchar(max)");
 335
 336                    b.Property<string>("Description")
 337                        .HasColumnType("nvarchar(max)");
 338
 339                    b.Property<string>("Name")
 340                        .IsRequired()
 341                        .HasColumnType("nvarchar(max)");
 342
 343                    b.Property<string>("NormalizedName")
 344                        .IsRequired()
 345                        .HasColumnType("nvarchar(max)");
 346
 347                    b.HasKey("Id");
 348
 349                    b.ToTable("Labels", "Elsa");
 650                });
 51
 352            modelBuilder.Entity("Elsa.Labels.Entities.WorkflowDefinitionLabel", b =>
 353                {
 354                    b.Property<string>("Id")
 355                        .HasColumnType("nvarchar(450)");
 356
 357                    b.Property<string>("LabelId")
 358                        .IsRequired()
 359                        .HasColumnType("nvarchar(450)");
 360
 361                    b.Property<string>("WorkflowDefinitionId")
 362                        .IsRequired()
 363                        .HasColumnType("nvarchar(450)");
 364
 365                    b.Property<string>("WorkflowDefinitionVersionId")
 366                        .IsRequired()
 367                        .HasColumnType("nvarchar(450)");
 368
 369                    b.HasKey("Id");
 370
 371                    b.HasIndex("LabelId")
 372                        .HasDatabaseName("WorkflowDefinitionLabel_LabelId");
 373
 374                    b.HasIndex("WorkflowDefinitionId")
 375                        .HasDatabaseName("WorkflowDefinitionLabel_WorkflowDefinitionId");
 376
 377                    b.HasIndex("WorkflowDefinitionVersionId")
 378                        .HasDatabaseName("WorkflowDefinitionLabel_WorkflowDefinitionVersionId");
 379
 380                    b.ToTable("WorkflowDefinitionLabels", "Elsa");
 681                });
 82#pragma warning restore 612, 618
 383        }
 84    }
 85}