2012-04-13 2 views

답변

1

가장 쉬운 방법은 DbContext에 대한 래퍼를 생성하는 것입니다.

public class EfWrapper:Context 
{ 
private DbContext _dbContext; 

    public EfWrapper(DbContext context){ 
    _dbContext=context; 
    } 

    public IEnumerable <User> Users{ 
    get 
    { 
     return _dbContext.Users.Where(my where condition); 
    } 
} 


} 
+0

감사합니다. – Raymond

관련 문제