// using System; using BuildingBlocks.PersistMessageProcessor.Data; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Metadata; using Microsoft.EntityFrameworkCore.Migrations; using Microsoft.EntityFrameworkCore.Storage.ValueConversion; #nullable disable namespace BuildingBlocks.PersistMessageProcessor.Data.Migrations { [DbContext(typeof(PersistMessageDbContext))] [Migration("20221206184130_initial")] partial class initial { /// protected override void BuildTargetModel(ModelBuilder modelBuilder) { #pragma warning disable 612, 618 modelBuilder .HasAnnotation("ProductVersion", "7.0.0") .HasAnnotation("Relational:MaxIdentifierLength", 128); SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder); modelBuilder.Entity("BuildingBlocks.PersistMessageProcessor.PersistMessage", b => { b.Property("Id") .HasColumnType("bigint"); b.Property("Created") .HasColumnType("datetime2"); b.Property("Data") .HasColumnType("nvarchar(max)"); b.Property("DataType") .HasColumnType("nvarchar(max)"); b.Property("DeliveryType") .IsRequired() .HasMaxLength(50) .IsUnicode(false) .HasColumnType("varchar(50)"); b.Property("MessageStatus") .IsRequired() .HasMaxLength(50) .IsUnicode(false) .HasColumnType("varchar(50)"); b.Property("RetryCount") .HasColumnType("int"); b.HasKey("Id"); b.ToTable("PersistMessage", "dbo"); }); #pragma warning restore 612, 618 } } }