Esempio n. 1
0
        public static ZebbleBillingVoucherServicesBuilder AddEntityFramework(this ZebbleBillingVoucherServicesBuilder builder)
        {
            builder.Services.AddDbContext <VoucherDbContext>();

            builder.Services.AddScoped <IVoucherRepository, VoucherRepository>();

            return(builder);
        }
Esempio n. 2
0
        public static ZebbleBillingVoucherServicesBuilder AddDynamoDb(this ZebbleBillingVoucherServicesBuilder builder)
        {
            builder.Services.AddScoped <VoucherDbContext>();

            builder.Services.AddScoped <IVoucherRepository, VoucherRepository>();

            return(builder);
        }