Beispiel #1
0
        public static IServiceCollection AddEfSupplyContext(
            this IServiceCollection services,
            SupplyDataContextSettings settings)
        {
            services.AddSingleton(settings);

            services.AddSingleton <IInvoceRepository, InvoceRepository>();

            services.AddSingleton <IContextFactory <SupplyDataContext>, SupplyContextFactory>();

            return(services);
        }
Beispiel #2
0
 public SupplyDataContext(SupplyDataContextSettings settings)
 {
     _settings = settings;
 }