Пример #1
0
 public RecipeRepository(MongoRecipeDBContext context)
     : base(context)
 {
     _context = context;
 }
Пример #2
0
 public MongoAsyncRepository(MongoRecipeDBContext context)
 {
     _context    = context;
     _collection = _context.GetCollection <TDocument>(typeof(TDocument).Name);
 }