mirror of https://github.com/EasyAbp/EShop.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
602 B
22 lines
602 B
using System;
|
|
using Volo.Abp;
|
|
using Volo.Abp.MongoDB;
|
|
|
|
namespace EasyAbp.EShop.Baskets.MongoDB
|
|
{
|
|
public static class BasketsMongoDbContextExtensions
|
|
{
|
|
public static void ConfigureBaskets(
|
|
this IMongoModelBuilder builder,
|
|
Action<AbpMongoModelBuilderConfigurationOptions> optionsAction = null)
|
|
{
|
|
Check.NotNull(builder, nameof(builder));
|
|
|
|
var options = new BasketsMongoModelBuilderConfigurationOptions(
|
|
BasketsDbProperties.DbTablePrefix
|
|
);
|
|
|
|
optionsAction?.Invoke(options);
|
|
}
|
|
}
|
|
}
|