Show / Hide Table of Contents

Class TestAppMongoDbContext

Inheritance
object
AbpMongoDbContext
TestAppMongoDbContext
Implements
ITransientDependency
ITestAppMongoDbContext
IThirdDbContext
IFourthDbContext
IAbpMongoDbContext
Inherited Members
AbpMongoDbContext.InitializeDatabase(IMongoDatabase, IMongoClient, IClientSessionHandle)
AbpMongoDbContext.Collection<T>()
AbpMongoDbContext.InitializeCollections(IMongoDatabase)
AbpMongoDbContext.GetCollectionName<T>()
AbpMongoDbContext.GetEntityModel<TEntity>()
AbpMongoDbContext.LazyServiceProvider
AbpMongoDbContext.ModelSource
AbpMongoDbContext.Client
AbpMongoDbContext.Database
AbpMongoDbContext.SessionHandle
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

AppEntityWithNavigations

Declaration
public IMongoCollection<AppEntityWithNavigations> AppEntityWithNavigations { get; }
Property Value
Type Description
IMongoCollection<AppEntityWithNavigations>

Cities

Declaration
public IMongoCollection<City> Cities { get; }
Property Value
Type Description
IMongoCollection<City>

DummyEntities

Declaration
public IMongoCollection<ThirdDbContextDummyEntity> DummyEntities { get; }
Property Value
Type Description
IMongoCollection<ThirdDbContextDummyEntity>

EntityWithIntPks

Declaration
public IMongoCollection<EntityWithIntPk> EntityWithIntPks { get; }
Property Value
Type Description
IMongoCollection<EntityWithIntPk>

FourthDummyEntities

Declaration
public IMongoCollection<FourthDbContextDummyEntity> FourthDummyEntities { get; }
Property Value
Type Description
IMongoCollection<FourthDbContextDummyEntity>

People

Declaration
[MongoCollection("Persons")]
public IMongoCollection<Person> People { get; }
Property Value
Type Description
IMongoCollection<Person>

Products

Declaration
public IMongoCollection<Product> Products { get; }
Property Value
Type Description
IMongoCollection<Product>

Methods

CreateModel(IMongoModelBuilder)

Declaration
protected override void CreateModel(IMongoModelBuilder modelBuilder)
Parameters
Type Name Description
IMongoModelBuilder modelBuilder
Overrides
AbpMongoDbContext.CreateModel(IMongoModelBuilder)

Implements

ITransientDependency
ITestAppMongoDbContext
IThirdDbContext
IFourthDbContext
IAbpMongoDbContext

Extension Methods

AbpObjectExtensions.As<T>(object)
AbpObjectExtensions.To<T>(object)
LockExtensions.Locking(object, Action)
LockExtensions.Locking<TResult>(object, Func<TResult>)
AbpObjectExtensions.If<T>(T, bool, Action<T>)
AbpObjectExtensions.If<T>(T, bool, Func<T, T>)
AbpObjectExtensions.IsIn<T>(T, IEnumerable<T>)
AbpObjectExtensions.IsIn<T>(T, params T[])
AbpQueryableExtensions.OrderByIf<T, TQueryable>(TQueryable, bool, string)
AbpQueryableExtensions.PageBy<T, TQueryable>(TQueryable, int, int)
AbpQueryableExtensions.WhereIf<T, TQueryable>(TQueryable, bool, Expression<Func<T, bool>>)
AbpQueryableExtensions.WhereIf<T, TQueryable>(TQueryable, bool, Expression<Func<T, int, bool>>)
AbpOpenIddictQueryableExtensions.SkipIf<T, TQueryable>(TQueryable, bool, int?)
AbpOpenIddictQueryableExtensions.TakeIf<T, TQueryable>(TQueryable, bool, int?)
LockExtensions.Locking<T>(T, Action<T>)
LockExtensions.Locking<T, TResult>(T, Func<T, TResult>)
In this article
Back to top Powered by ABP.IO Platform