public class Account {
public int SYSID {
get;
set;
}
public int AccountTypeSYSID {
get;
set;
}
public int ProfileSYSID {
get;
set;
}
public string AccountName {
get;
set;
}
public double StartingBalance {
get;
set;
}
public double CurrentBalance {
get;
set;
}
public Profile Profile() {
using(var ops = new ProfileDbOps(DbConnection, true)) {
returnops.GetBySYSID(ProfileSYSID);
}
}
}
if I have a class such as
and try to run the query
you get the exception profile is not a field of type Account but profile is a field on account?!