using System; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure; namespace EntityFramework.Jet.FunctionalTests.Migrations { [DbContext(typeof(Issue398Test.BloggingContext))] partial class BloggingContextModelSnapshot : ModelSnapshot { protected override void BuildModel(ModelBuilder modelBuilder) { modelBuilder .HasAnnotation("ProductVersion", "1.2.0-preview1-23235"); modelBuilder.Entity("ConsoleApplication1.Blog", b => { b.Property("BlogId") .ValueGeneratedOnAdd(); b.Property("Url"); b.HasKey("BlogId"); b.ToTable("Blogs"); }); modelBuilder.Entity("ConsoleApplication1.Post", b => { b.Property("PostId") .ValueGeneratedOnAdd(); b.Property("BlogId"); b.Property("Content"); b.Property("Title"); b.HasKey("PostId"); b.HasIndex("BlogId") .HasAnnotation("Jet:Name", "NewIndex"); b.ToTable("Posts"); }); modelBuilder.Entity("ConsoleApplication1.Post", b => { b.HasOne("ConsoleApplication1.Blog", "Blog") .WithMany("Posts") .HasForeignKey("BlogId") .OnDelete(DeleteBehavior.Cascade); }); } } }