Guest User

Untitled

a guest
Dec 14th, 2017
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.13 KB | None | 0 0
  1. modelBuilder.Entity<Profile>()
  2. .HasOne(p => p.Avatar)
  3. .WithOne()
  4. .HasForeignKey<Profile>(p => p.AvatarId);
Add Comment
Please, Sign In to add comment