using System; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Metadata; using Microsoft.EntityFrameworkCore.Migrations; using Sample.Kafka; namespace Sample.Kafka.Migrations { [DbContext(typeof(AppDbContext))] [Migration("20170624095008_CreateDatabase")] partial class CreateDatabase { protected override void BuildTargetModel(ModelBuilder modelBuilder) { modelBuilder .HasAnnotation("ProductVersion", "1.1.2") .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); modelBuilder.Entity("DotNetCore.CAP.Infrastructure.CapReceivedMessage", b => { b.Property("Id") .ValueGeneratedOnAdd(); b.Property("Added"); b.Property("Content"); b.Property("KeyName"); b.Property("LastRun"); b.Property("Retries"); b.Property("StateName") .HasMaxLength(50); b.HasKey("Id"); b.ToTable("ReceivedMessages"); }); modelBuilder.Entity("DotNetCore.CAP.Infrastructure.CapSentMessage", b => { b.Property("Id") .ValueGeneratedOnAdd(); b.Property("Added"); b.Property("Content"); b.Property("KeyName"); b.Property("LastRun"); b.Property("Retries"); b.Property("StateName") .HasMaxLength(50); b.HasKey("Id"); b.ToTable("SentMessages"); }); } } }