0
林取一個「粘貼」從功能波紋管一個倉庫,但我不能當我取粘貼應該包括訪問對象。 (Paste.FilterGroup.Ads)。如何包括使用存儲庫中的EntityFramework對象?
我的倉庫功能:
public T Find<T>(Expression<Func<T, bool>> predicate) where T : class
{
return Context.Set<T>().FirstOrDefault<T>(predicate);
}
在我的代碼,我試試這個。
3210編輯: 粘貼類包含
public virtual FilterGroup FilterGroup { get; set; }
FilterGroup類包含
public virtual IEnumerable<Ad> Ads { get; set; }
謝謝!這解決了問題! –