< Summary

Information
Class: PaymentService.Migrations.PaymentDbContextModelSnapshot
Assembly: PaymentService
File(s): /home/runner/work/MicroservicesApp/MicroservicesApp/PaymentService/Migrations/PaymentDbContextModelSnapshot.cs
Tag: 23_15739319309
Line coverage
0%
Covered lines: 0
Uncovered lines: 28
Coverable lines: 28
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 Cyclomatic complexity Line coverage
BuildModel(...)100%10%

File(s)

/home/runner/work/MicroservicesApp/MicroservicesApp/PaymentService/Migrations/PaymentDbContextModelSnapshot.cs

#LineLine coverage
 1// <auto-generated />
 2using System;
 3using Microsoft.EntityFrameworkCore;
 4using Microsoft.EntityFrameworkCore.Infrastructure;
 5using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
 6using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata;
 7
 8#nullable disable
 9
 10namespace PaymentService.Migrations
 11{
 12    [DbContext(typeof(PaymentDbContext))]
 13    partial class PaymentDbContextModelSnapshot : ModelSnapshot
 14    {
 15        protected override void BuildModel(ModelBuilder modelBuilder)
 16        {
 17#pragma warning disable 612, 618
 018            modelBuilder
 019                .HasAnnotation("ProductVersion", "9.0.4")
 020                .HasAnnotation("Relational:MaxIdentifierLength", 63);
 21
 022            NpgsqlModelBuilderExtensions.UseIdentityByDefaultColumns(modelBuilder);
 23
 024            modelBuilder.Entity("Contracts.Payment", b =>
 025                {
 026                    b.Property<Guid>("Id")
 027                        .ValueGeneratedOnAdd()
 028                        .HasColumnType("uuid");
 029
 030                    b.Property<Guid>("OrderId")
 031                        .HasColumnType("uuid");
 032
 033                    b.Property<DateTime>("ProcessedAt")
 034                        .HasColumnType("timestamp with time zone");
 035
 036                    b.Property<string>("ProductName")
 037                        .IsRequired()
 038                        .HasColumnType("text");
 039
 040                    b.Property<int>("Quantity")
 041                        .HasColumnType("integer");
 042
 043                    b.HasKey("Id");
 044
 045                    b.ToTable("Payments");
 046                });
 47#pragma warning restore 612, 618
 048        }
 49    }
 50}