2012-04-03 7 views
1

では利用できません含めますその1から:は、私のようなリポジトリを持って継承repostory

public class AreaRepository : Repository<Area> 
{ 
    public AreaRepository(IContext context) : base (context) 
    { 
    } 

    public new IEnumerable<Area> GetAreas() 
    { 
     return _db.Users.Include("Areas"); 
    } 
} 

エラーが発生しますが、

System.Data.Entity.IDbSet' does not contain a definition for 'Include' and no extension method 'Include' accepting a first argument of type 'System.Data.Entity.IDbSet' could be found

なぜこれが起こっていますか?私はそれが親から来るのと同じ文脈を持っています。

答えて

関連する問題