mirror of https://github.com/abpframework/abp.git
csharpabpc-sharpframeworkblazoraspnet-coredotnet-coreaspnetcorearchitecturesaasdomain-driven-designangularmulti-tenancy
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.
31 lines
1.1 KiB
31 lines
1.1 KiB
using Microsoft.Extensions.DependencyInjection;
|
|
using Volo.Abp.Modularity;
|
|
using Volo.Abp.Users.MongoDB;
|
|
using Volo.Blogging.Blogs;
|
|
using Volo.Blogging.Comments;
|
|
using Volo.Blogging.Posts;
|
|
using Volo.Blogging.Tagging;
|
|
using Volo.Blogging.Users;
|
|
|
|
namespace Volo.Blogging.MongoDB
|
|
{
|
|
[DependsOn(
|
|
typeof(BloggingDomainModule),
|
|
typeof(AbpUsersMongoDbModule)
|
|
)]
|
|
public class BloggingMongoDbModule : AbpModule
|
|
{
|
|
public override void ConfigureServices(ServiceConfigurationContext context)
|
|
{
|
|
context.Services.AddMongoDbContext<BloggingMongoDbContext>(options =>
|
|
{
|
|
options.AddRepository<Blog, MongoBlogRepository>();
|
|
options.AddRepository<BlogUser, MongoBlogUserRepository>();
|
|
options.AddRepository<Post, MongoPostRepository>();
|
|
options.AddRepository<Tag, MongoTagRepository>();
|
|
options.AddRepository<PostTag, MongoPostTagRepository>();
|
|
options.AddRepository<Comment, MongoCommentRepository>();
|
|
});
|
|
}
|
|
}
|
|
}
|
|
|