このコードNHibernateの基準エラー
public IList<Patient> GetByMRNNameDOB(Patient patient)
{
using (ISession session = SessionManager.Current.OpenSession())
{
ICriteria criteria = session.CreateCriteria(typeof (Patient))
.Add(Expression.Disjunction()
.Add(Expression.Eq("patient.MedicalRecordNumber", patient.MedicalRecordNumber))
.Add(Expression.Conjunction()
.Add(Expression.Eq("patient.FirstName", patient.FirstName))
.Add(Expression.Eq("patient.LastName", patient.LastName))
.Add(Expression.Eq("patient.Birthday", patient.Birthday))));
return criteria.List<Patient>();
}
}
でエラーが発生します:
Could not resolve property: patient of: SolutionConsultants.WebScreening.Entities.Patients.Patient
Type for which Type.IsGenericParameter is true
任意のアイデア?