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.
22 lines
533 B
22 lines
533 B
using Volo.Abp.Data;
|
|
using Volo.Abp.MongoDB;
|
|
|
|
namespace MyCompanyName.MyProjectName.Data;
|
|
|
|
[ConnectionStringName("Default")]
|
|
public class MyProjectNameDbContext : AbpMongoDbContext
|
|
{
|
|
/* Add mongo collections here. Example:
|
|
* public IMongoCollection<Question> Questions => Collection<Question>();
|
|
*/
|
|
|
|
protected override void CreateModel(IMongoModelBuilder modelBuilder)
|
|
{
|
|
base.CreateModel(modelBuilder);
|
|
|
|
//builder.Entity<YourEntity>(b =>
|
|
//{
|
|
// //...
|
|
//});
|
|
}
|
|
}
|
|
|