I am using Entity framework v 6.1.1 in my application.
My database has 2 tables User, Location.
User table
-----------
UserID
HomeCityId(FK -> LocationId)
CurrentCityId(FK -> LocationId)
Location table
LocationId
LocationName
Using DB First approach, I created a Entity data model for these two tables.
The generated entity class of User table
public int UserId;
public int HomeCityId;
public int CurrentCityId;
public virtual Location Location { get; set; }
public virtual Location Location1 { get; set; }
Is there a way to name these virtual properties as HomeCity and CurrentCity instead of Location and Location1?