NHibernate - QBE -


i have problem using qbe nhibernate. have one-to-one relationship between person class , employee.

public class person {     public virtual employee employee { get; set; }     public virtual int age { get; set; }     public virtual string forename { get; set; }     public virtual string surname { get; set; }     public virtual int personid { get; set; } }  public class employee {     public virtual int personid { get; set; }     public virtual string payrollno { get; set; }     public virtual int holidays { get; set; }     public virtual person person { get; set; } } 

as example, want employees employee.forename="john" , employee.person.payrollno = "231a". wondering if use query example this?

i have not been able find definitive "no" haven't been able work. i've found qbe promising unfortunately not useful due following limitations:

  • cannot query related objects.
  • requires public parameterless constructor.
  • initialized properties included in query unless excluded using excludeproeprty. example, bool properties restricted false in clause, datetime datetime.minvalue. makes query brittle because class modifications may have bad side effects.

Comments

Popular posts from this blog

java - SNMP4J General Variable Binding Error -

windows - Python Service Installation - "Could not find PythonClass entry" -

Determine if a XmlNode is empty or null in C#? -