Hi frans.
I have a class that wraps an entity (Country). Country contains all the Englisg names for all the countries. It has a FK relationship to Afrikaans Countries (Another table) - yeah pretty wierd database design.
My problem is with the code below. The set of the property below in not working. As soon as value is assigned to this.CountryEntity.Country_AfrikaansEntity.Country the value of this.CountryEntity.Country_AfrikaansEntity.Country becomes "" (Empty string) .
public string CountryAfrikaansName
{
get { return this.CountryEntity.Country_AfrikaansEntity.Country; }
set { this.CountryEntity.Country_AfrikaansEntity.Country = value; }
}
This only happens when new countries are inserted and not when editing. Is it possible that the assignment for "CountryAfrikaansName" is not working because "this.CountryEntity" has not been saved yet?