Class TestAppMongoDbContext
Implements
Inherited Members
object.GetType()
object.MemberwiseClone()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
Namespace: Volo.Abp.TestApp.MongoDB
Assembly: Volo.Abp.MongoDB.Tests.dll
Syntax
[ConnectionStringName("TestApp")]
[ReplaceDbContext(new Type[] { typeof(IFourthDbContext) })]
public class TestAppMongoDbContext : AbpMongoDbContext, ITransientDependency, ITestAppMongoDbContext, IThirdDbContext, IFourthDbContext, IAbpMongoDbContext
Constructors
TestAppMongoDbContext()
Declaration
public TestAppMongoDbContext()
Properties
Cities
Declaration
public IMongoCollection<City> Cities { get; }
Property Value
| Type | Description |
|---|---|
| MongoDB.Driver.IMongoCollection<><City> |
DummyEntities
Declaration
public IMongoCollection<ThirdDbContextDummyEntity> DummyEntities { get; }
Property Value
| Type | Description |
|---|---|
| MongoDB.Driver.IMongoCollection<><ThirdDbContextDummyEntity> |
EntityWithIntPks
Declaration
public IMongoCollection<EntityWithIntPk> EntityWithIntPks { get; }
Property Value
| Type | Description |
|---|---|
| MongoDB.Driver.IMongoCollection<><EntityWithIntPk> |
FourthDummyEntities
Declaration
public IMongoCollection<FourthDbContextDummyEntity> FourthDummyEntities { get; }
Property Value
| Type | Description |
|---|---|
| MongoDB.Driver.IMongoCollection<><FourthDbContextDummyEntity> |
People
Declaration
[MongoCollection("Persons")]
public IMongoCollection<Person> People { get; }
Property Value
| Type | Description |
|---|---|
| MongoDB.Driver.IMongoCollection<><Person> |
Products
Declaration
public IMongoCollection<Product> Products { get; }
Property Value
| Type | Description |
|---|---|
| MongoDB.Driver.IMongoCollection<><Product> |
Methods
CreateModel(IMongoModelBuilder)
Declaration
protected override void CreateModel(IMongoModelBuilder modelBuilder)
Parameters
| Type | Name | Description |
|---|---|---|
| IMongoModelBuilder | modelBuilder |