コード例 #1
0
        public BaseRepository(IPagamentoDataBaseSettings settings)
        {
            var client   = new MongoClient(settings.ConnectionString);
            var database = client.GetDatabase(settings.DatabaseName);

            this.Model = database.GetCollection <TModel>(typeof(TModel).Name);
        }
コード例 #2
0
 private void ConfigureDataBase()
 {
     this.PagamentoDataBase = new PagamentoDataBaseSettings()
     {
         ConnectionString = _configuration["ConnectionString"],
         DatabaseName     = _configuration["DatabaseName"]
     };
 }
コード例 #3
0
 public PagamentoRepository(IPagamentoDataBaseSettings settings) : base(settings)
 {
 }
コード例 #4
0
 public PagamentoService(IPagamentoDataBaseSettings pagamentoDataBaseSettings) =>