public partial class Town { [Key] public string TnCode { get; set; } public string TnName { get; set; } public string TnDscode { get; set; } public string TnSpFlag { get; set; } public virtual ICollection<District> Districts { get; set; } }
public partial class District { [Key] public string DsCode { get; set; } public string DsName { get; set; } public string DsSpFlag { get; set; } public virtual ICollection<Town> Towns { get; set; } }
public class State{ Town town; District district; }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)