Esempio n. 1
0
        public static IServiceCollection AddMongoDB(this IServiceCollection services, IConfiguration configuration)
        {
            var factory = new MongodbFactory(configuration);

            services.AddSingleton(factory);
            return(services);
        }
Esempio n. 2
0
 public RepositoryMongoDB(MongodbFactory connection)
 {
     this._dbConnection = connection;
 }