Class AbpMongoDbServiceCollectionExtensions
Inheritance
object
AbpMongoDbServiceCollectionExtensions
Inherited Members
object.GetType()
object.MemberwiseClone()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
Namespace: Microsoft.Extensions.DependencyInjection
Assembly: Volo.Abp.MongoDB.dll
Syntax
public static class AbpMongoDbServiceCollectionExtensions
Methods
AddMongoDbContext<TMongoDbContext>(IServiceCollection, Action<IAbpMongoDbContextRegistrationOptionsBuilder>)
Declaration
public static IServiceCollection AddMongoDbContext<TMongoDbContext>(this IServiceCollection services, Action<IAbpMongoDbContextRegistrationOptionsBuilder> optionsBuilder = null) where TMongoDbContext : AbpMongoDbContext
Parameters
| Type | Name | Description |
|---|---|---|
| Microsoft.Extensions.DependencyInjection.IServiceCollection | services | |
| System.Action<T><IAbpMongoDbContextRegistrationOptionsBuilder> | optionsBuilder |
Returns
| Type | Description |
|---|---|
| Microsoft.Extensions.DependencyInjection.IServiceCollection |
Type Parameters
| Name | Description |
|---|---|
| TMongoDbContext |