I generated the EDMX file through Visual Studio 2010, I have two tables namely PersonalDetail and Address, In the personalDetail table, i have two fields namely officeaddress and residenceaddress. Both have the relationship with "Address", so while generating the EDMX file , i getting two entities like Address and Address1, but i want to name like this OfficeAddress, ResidenceAddress respectively.
NOTE : I Don't want to change the generated file, because i'll generate the file periodically.
Current generated code
public Address Address
{
get..
set..
}
public Address Address1
{
get..
set..
}
i want this to be
public Address OfficeAddress
{
get..
set..
}
public Address ResidenceAddress
{
get..
set..
}