Beispiel #1
0
        public DbContext(MongoConfig config)
        {
            var client = new MongoClient(config.ConnectionString);

            if (client != null)
            {
                database = client.GetDatabase(config.Database);
            }
        }
 public Repository(MongoConfig config, IMapper mapper)
 {
     context     = new DbContext(config);
     this.mapper = mapper;
 }