public partial class Person { public Person() { .... } .... public Nullable<int> phoneID{ get; set; } public virtual Phones phones{ get; set; } } ..... public partial class Person { public string PhoneName { return this.phones.phonename; } //SO ERROR APPEARS HERE. this.phones is NULL }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)