using System; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Metadata; using Microsoft.EntityFrameworkCore.Migrations; using Microsoft.eShopOnContainers.BuildingBlocks.IntegrationEventLogEF; namespace Ordering.API.Infrastructure.IntegrationEventMigrations { [DbContext(typeof(IntegrationEventLogContext))] partial class IntegrationEventLogContextModelSnapshot : ModelSnapshot { protected override void BuildModel(ModelBuilder modelBuilder) { modelBuilder .HasAnnotation("ProductVersion", "1.1.1") .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); modelBuilder.Entity("Microsoft.eShopOnContainers.BuildingBlocks.IntegrationEventLogEF.IntegrationEventLogEntry", b => { b.Property("EventId") .ValueGeneratedOnAdd(); b.Property("Content") .IsRequired(); b.Property("CreationTime"); b.Property("EventTypeName") .IsRequired(); b.Property("State"); b.Property("TimesSent"); b.HasKey("EventId"); b.ToTable("IntegrationEventLog"); }); } } }