Beispiel #1
0
        public RepositoryBase(ContextoMongoDB context)
        {
            _context    = context;
            _collection = _context.BaseDeDados.GetCollection <K>(Collection);
            var config = new MapperConfiguration(cfg => cfg.AddProfile(typeof(MappingProfile)));

            _mapper = config.CreateMapper();
        }
Beispiel #2
0
 public RepositoryPublicacao(ContextoMongoDB context) : base(context)
 {
 }
Beispiel #3
0
 public UnitOfWork(ContextoMongoDB context)
 {
     _context = context;
 }