示例#1
0
 public CrudLayerBase()
 {
     Context = new EfEntityRepositoryBase <T, DatabaseContext>();
 }
 public NewsGatewayRepository(IConfiguration configuration)
 {
     _baseMongoRepository    = new BaseMongoRepository <NewsModel>(configuration);
     _efEntityRepositoryBase = new EfEntityRepositoryBase <News, NContext>(configuration);
     _categoryRepository     = new EfEntityRepositoryBase <Category, NContext>(configuration);
 }