4
Linq2Sql을 사용할 때 DataLoadOptions.AssociateWith 메서드에서 람다 식을 사용하여 테이블을 필터링 할 수 있습니다.Entity Framework vs. AssociateWith
사용 된 언어를 필터링하는 데이 코드를 사용합니다. 따라서 모든 언어가 포함 된 언어 표와 객체가 포함 된 객체 표가 있습니다.
처럼 :
DataLoadOptions opt = ...;
opt.AssociateWith<DB.Objects>(o => o.Language.Where(p => p.Culture == CurrentUser.Culture));
어떻게하는 그 엔티티 프레임 워크와 - 나는 .Include (문자열)를 사용해야하는 대신 dataloadoptions?