如何爲此代碼添加投影?我正在嘗試根據創建日期或上次更新的日期對結果進行排序。 var c = new Conjunction();
c.Add(Restrictions.Where<InstructionTask>(x => x.IsOpen == _setDefaultStatusIfNotFound(status)));
//錯誤添加此投影: if (string.IsNullO
我試着用這兩個階級的投影: public class SomeClass
{
public virtual int Id { get; private set; }
public virtual string Name { get; set; }
public virtual IList<Language> Languages { get; set; }
}
我有以下實體 public class ArticleCategory
{
public int Id {get; set;}
public string Name {get; set;}
public IList<Article> Articles {get; set;}
}
public class Article
{
public int I