Hi,
I have a general question about using Nhibernate across web services. The web service provides basic data manipulation operations and uses NHibernate to do this:
For the sake of example, if I have the following classes:
Code:
// Client class //
public class Client
{
private int id;
private State state;
private Employment employment;
public Client() {}
public int Id
{
get { return this.id; }
set { this.id = value; }
}
public State ClientState
{
get { return this.state; }
set { this.state = value; }
}
public Employment ClientEmployment
{
get { return this. employment; }
set { this. employment = value; }
}
}
// Employment class //
public class Employment
{
Private int id;
Private string occupation;
private State state;
public Employment () {}
public int Id
{
get { return this.id; }
set { this.id = value; }
}
public string Occupation
{
get { return this.occupation; }
set { this.occupation = value; }
}
public State EmploymentState
{
get { return this.state; }
set { this.state = value; }
}
}
// State class //
public class State
{
private int id;
private string name;
public State() {}
public int Id
{
get { return this.id; }
set { this.id = value; }
}
public string StateName
{
get { return this.name; }
set { this.name = value; }
}
}
On the