tags:

views:

46

answers:

0

I have two classes like this (This is just for demostration):

Class 1:

public class Country
{
  public Guid ID { get; private set; }
  public String Name {get; private set; }
  public List<StateProvince> StateProvinces { get; private set; }
}

Class 2:

public class StateProvince
{
  public Guid ID { get; private set; }
  public String Name {get; private set; }
}

My questions are : 1. Is this the correct way of designing my classes to use with Subsonic 3.0 ? 2. If No, Can you please explain why and what is the correct way of doing it ? 3. If Yes, How can I add a new StateProvince object ? Do I need to create a Country object first and add the stateprovince to it ? Is something like this possible ?

public bool AddNewState (Guid CountryID, StateProvince NewState) { ????? }

Thank you very much in advance !!!