SHARE
TWEET

Untitled

a guest Oct 12th, 2017 56 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. modelBuilder.Entity<Entity1>()
  2.                     .HasRequired(x => x.Entity2)
  3.                     .WithRequiredPrincipal()
  4.                     .Map(x => x.MapKey("Entity1_Id"))
  5.                     .WillCascadeOnDelete(true);
RAW Paste Data
Top