예제 #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);
        }
예제 #2
0
 public SupplyDataContext(SupplyDataContextSettings settings)
 {
     _settings = settings;
 }