Example #1
0
        public TallerService(ITallerstoreDatabaseSettings settings, ISolicitudstoreDatabaseSettings settingsS)
        {
            var taller   = new MongoClient(settings.ConnectionString);
            var database = taller.GetDatabase(settings.DatabaseName);

            _taller    = database.GetCollection <Taller>(settings.TallerCollectionName);
            _solicitud = database.GetCollection <Solicitud>(settingsS.SolicitudCollectionName);
        }
Example #2
0
        public MensajeriaService(IClientestoreDatabaseSettings csettings, IMensajeriastoreDatabaseSettings settings, ITallerstoreDatabaseSettings tsettings)
        {
            var client   = new MongoClient(settings.ConnectionString);
            var database = client.GetDatabase(settings.DatabaseName);

            _mensajeria = database.GetCollection <Mensajeria>(settings.MensajeriaCollectionName);
            _taller     = database.GetCollection <Taller>(tsettings.TallerCollectionName);
            _cliente    = database.GetCollection <Cliente>(csettings.ClienteCollectionName);
        }