Use of InversePropertyAttribute in Entity Framework

InversePropertyAttribute in System.ComponentModel.DataAnnotations.Schema can be quite handy when using Entity Framework code first. Let’s take the following scenario. Consider that you have the following two entities and the data context. public class Person { publi

C# (8.8 MB)
123 times
Add to favorites
E-mail Twitter Digg Facebook

Solution explorer

Click an item in the panel on the left to view the contents here.