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

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

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

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

            return(builder);
        }