public static void ConfigureBookManagement(
            this IMongoModelBuilder builder,
            Action <AbpMongoModelBuilderConfigurationOptions> optionsAction = null)
        {
            Check.NotNull(builder, nameof(builder));

            var options = new BookManagementMongoModelBuilderConfigurationOptions();

            optionsAction?.Invoke(options);
        }
Пример #2
0
        public static void ConfigureBookManagement(
            this IMongoModelBuilder builder,
            Action <AbpMongoModelBuilderConfigurationOptions> optionsAction = null)
        {
            Check.NotNull(builder, nameof(builder));

            var options = new BookManagementMongoModelBuilderConfigurationOptions();

            optionsAction?.Invoke(options);

            builder.Entity <Book>(b =>
            {
                b.CollectionName = options.CollectionPrefix + "Books";
            });
        }