скажи, у меня есть такой объект
public class Student{
public IList<Coursework> Courseworks{get;set;}
public string Name{get;set;}
public int Age{get;set;}
public bool HasCompletedCoursework(int courseyear, string moduleName)
{
return Courseworks.Any(x => x.Courseyear == courseyear && x.ModuleName == moduleName && IsComplete);
}
}
public class Coursework{
public int Courseyear{get;set;}
public string ModuleName{get;set;}
public bool IsComplete {get; set;}
}
возможно ли вызвать метод HasCompletedCoursework в классе Student, когда вы используете ICriteria для запроса к базе данных.
Приветствие
Колин Г