Class AbpCommonDbContextRegistrationOptions
Inheritance
object
AbpCommonDbContextRegistrationOptions
Inherited Members
object.GetType()
object.MemberwiseClone()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
Assembly: Volo.Abp.Ddd.Domain.dll
Syntax
public abstract class AbpCommonDbContextRegistrationOptions : IAbpCommonDbContextRegistrationOptionsBuilder
Constructors
AbpCommonDbContextRegistrationOptions(Type, IServiceCollection)
Declaration
protected AbpCommonDbContextRegistrationOptions(Type originalDbContextType, IServiceCollection services)
Parameters
| Type |
Name |
Description |
| System.Type |
originalDbContextType |
|
| Microsoft.Extensions.DependencyInjection.IServiceCollection |
services |
|
Properties
CustomRepositories
Declaration
public Dictionary<Type, Type> CustomRepositories { get; }
Property Value
| Type |
Description |
| System.Collections.Generic.Dictionary<TKey, TValue><System.Type, System.Type> |
|
DefaultRepositoryDbContextType
Declaration
public Type DefaultRepositoryDbContextType { get; protected set; }
Property Value
| Type |
Description |
| System.Type |
|
DefaultRepositoryImplementationType
Declaration
public Type DefaultRepositoryImplementationType { get; }
Property Value
| Type |
Description |
| System.Type |
|
DefaultRepositoryImplementationTypeWithoutKey
Declaration
public Type DefaultRepositoryImplementationTypeWithoutKey { get; }
Property Value
| Type |
Description |
| System.Type |
|
IncludeAllEntitiesForDefaultRepositories
Declaration
public bool IncludeAllEntitiesForDefaultRepositories { get; }
Property Value
OriginalDbContextType
Declaration
public Type OriginalDbContextType { get; }
Property Value
| Type |
Description |
| System.Type |
|
RegisterDefaultRepositories
Declaration
public bool RegisterDefaultRepositories { get; }
Property Value
ReplacedDbContextTypes
Declaration
public Dictionary<Type, Type> ReplacedDbContextTypes { get; }
Property Value
| Type |
Description |
| System.Collections.Generic.Dictionary<TKey, TValue><System.Type, System.Type> |
|
Services
Declaration
public IServiceCollection Services { get; }
Property Value
| Type |
Description |
| Microsoft.Extensions.DependencyInjection.IServiceCollection |
|
SpecifiedDefaultRepositories
Declaration
public List<Type> SpecifiedDefaultRepositories { get; }
Property Value
| Type |
Description |
| System.Collections.Generic.List<T><System.Type> |
|
SpecifiedDefaultRepositoryTypes
Declaration
public bool SpecifiedDefaultRepositoryTypes { get; }
Property Value
Methods
AddDefaultRepositories(bool)
Declaration
public IAbpCommonDbContextRegistrationOptionsBuilder AddDefaultRepositories(bool includeAllEntities = false)
Parameters
| Type |
Name |
Description |
| bool |
includeAllEntities |
|
Returns
AddDefaultRepositories(Type, bool)
Declaration
public IAbpCommonDbContextRegistrationOptionsBuilder AddDefaultRepositories(Type defaultRepositoryDbContextType, bool includeAllEntities = false)
Parameters
| Type |
Name |
Description |
| System.Type |
defaultRepositoryDbContextType |
|
| bool |
includeAllEntities |
|
Returns
AddDefaultRepositories<TDefaultRepositoryDbContext>(bool)
Declaration
public IAbpCommonDbContextRegistrationOptionsBuilder AddDefaultRepositories<TDefaultRepositoryDbContext>(bool includeAllEntities = false)
Parameters
| Type |
Name |
Description |
| bool |
includeAllEntities |
|
Returns
Type Parameters
| Name |
Description |
| TDefaultRepositoryDbContext |
|
AddDefaultRepository(Type)
Declaration
public IAbpCommonDbContextRegistrationOptionsBuilder AddDefaultRepository(Type entityType)
Parameters
| Type |
Name |
Description |
| System.Type |
entityType |
|
Returns
AddDefaultRepository<TEntity>()
Declaration
public IAbpCommonDbContextRegistrationOptionsBuilder AddDefaultRepository<TEntity>()
Returns
Type Parameters
AddRepository<TEntity, TRepository>()
Declaration
public IAbpCommonDbContextRegistrationOptionsBuilder AddRepository<TEntity, TRepository>()
Returns
Type Parameters
| Name |
Description |
| TEntity |
|
| TRepository |
|
ReplaceDbContext(Type, Type)
Declaration
public IAbpCommonDbContextRegistrationOptionsBuilder ReplaceDbContext(Type otherDbContextType, Type targetDbContextType = null)
Parameters
| Type |
Name |
Description |
| System.Type |
otherDbContextType |
|
| System.Type |
targetDbContextType |
|
Returns
ReplaceDbContext<TOtherDbContext>()
Declaration
public IAbpCommonDbContextRegistrationOptionsBuilder ReplaceDbContext<TOtherDbContext>()
Returns
Type Parameters
| Name |
Description |
| TOtherDbContext |
|
ReplaceDbContext<TOtherDbContext, TTargetDbContext>()
Declaration
public IAbpCommonDbContextRegistrationOptionsBuilder ReplaceDbContext<TOtherDbContext, TTargetDbContext>()
Returns
Type Parameters
| Name |
Description |
| TOtherDbContext |
|
| TTargetDbContext |
|
SetDefaultRepositoryClasses(Type, Type)
Declaration
public IAbpCommonDbContextRegistrationOptionsBuilder SetDefaultRepositoryClasses(Type repositoryImplementationType, Type repositoryImplementationTypeWithoutKey)
Parameters
| Type |
Name |
Description |
| System.Type |
repositoryImplementationType |
|
| System.Type |
repositoryImplementationTypeWithoutKey |
|
Returns
Implements
Extension Methods