Beispiel #1
0
 protected Repository(INEWSMongoContext context)
 {
     _mongoContext = context;
     _dbCollection = _mongoContext.GetCollection <TEntity>(typeof(TEntity).Name);
 }
Beispiel #2
0
 public NewsRepository(INEWSMongoContext context) : base(context)
 {
 }
 public UnitOfWork(INEWSMongoContext context)
 {
     _context = context;
 }