// using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Metadata; using Microsoft.EntityFrameworkCore.Migrations; using Microsoft.EntityFrameworkCore.Storage; using Microsoft.EntityFrameworkCore.Storage.Internal; using Sample.RabbitMQ.SqlServer; using System; namespace Sample.RabbitMQ.SqlServer.Migrations { [DbContext(typeof(AppDbContext))] [Migration("20170824130007_AddPersons")] partial class AddPersons { protected override void BuildTargetModel(ModelBuilder modelBuilder) { #pragma warning disable 612, 618 modelBuilder .HasAnnotation("ProductVersion", "2.0.0-rtm-26452") .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); modelBuilder.Entity("Sample.RabbitMQ.SqlServer.Controllers.Person", b => { b.Property("Id") .ValueGeneratedOnAdd(); b.Property("Age"); b.Property("Name"); b.HasKey("Id"); b.ToTable("Persons"); }); #pragma warning restore 612, 618 } } }