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

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

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

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

            return(builder);
        }