I am using Entity Framework.
I have an Organization business Object that contains the following properties
public Address ShippingAddress { get; set; }
public Address BillingAddress { get; set; }
The Address class is as follows
C#public class Address
{
public string Street1 { get; set; }
public string Suburb { get; set; }
public string State{ get; set; }
public string Postcode { get; set; }
public string Street2 { get; set; }
}
When I create the application the generated address fields simply display the read only text
"Application.Module.BusinessObjects.Address"
How should I go about building the detail view so the address fields are visible and editable?
[Update]
I use this class with in my business object
C#[Table("Organisations")]
public class Organisation : BasicBO
{
public Organisation()
{
ShippingAddress = new Address();
Contacts = new BindingList<Contact>();
}
public string Name { get; set; }
public Address ShippingAddress { get; set; }
}