I am using the Entity v 6.1.1 framework in my application.
My database has 2 tables User, location .
User table ----------- UserID HomeCityId(FK -> LocationId) CurrentCityId(FK -> LocationId) Location table LocationId LocationName
Using the DB First approach , I created an Entity data model for these two tables.
Generated class noun. user tables
public int UserId; public int HomeCityId; public int CurrentCityId; public virtual Location Location { get; set; } public virtual Location Location1 { get; set; }
Can these virtual properties be called HomeCity and CurrentCity instead of Location and location1 ?
source share