Class RepositoryRegistrarBase<TOptions>
Inheritance
System.Object
RepositoryRegistrarBase<TOptions>
Assembly: Volo.Abp.Ddd.Domain.dll
Syntax
public abstract class RepositoryRegistrarBase<TOptions> : object where TOptions : AbpCommonDbContextRegistrationOptions
Type Parameters
Name |
Description |
TOptions |
|
Constructors
RepositoryRegistrarBase(TOptions)
Declaration
protected RepositoryRegistrarBase(TOptions options)
Parameters
Type |
Name |
Description |
TOptions |
options |
|
Properties
Options
Declaration
public TOptions Options { get; }
Property Value
Type |
Description |
TOptions |
|
Methods
AddRepositories()
Declaration
public virtual void AddRepositories()
GetDefaultRepositoryImplementationType(Type)
Declaration
protected virtual Type GetDefaultRepositoryImplementationType(Type entityType)
Parameters
Type |
Name |
Description |
Type |
entityType |
|
Returns
GetEntityTypes(Type)
Declaration
protected abstract IEnumerable<Type> GetEntityTypes(Type dbContextType)
Parameters
Type |
Name |
Description |
Type |
dbContextType |
|
Returns
Type |
Description |
IEnumerable<Type> |
|
GetRepositoryType(Type, Type)
Declaration
protected abstract Type GetRepositoryType(Type dbContextType, Type entityType)
Parameters
Type |
Name |
Description |
Type |
dbContextType |
|
Type |
entityType |
|
Returns
GetRepositoryType(Type, Type, Type)
Declaration
protected abstract Type GetRepositoryType(Type dbContextType, Type entityType, Type primaryKeyType)
Parameters
Type |
Name |
Description |
Type |
dbContextType |
|
Type |
entityType |
|
Type |
primaryKeyType |
|
Returns
RegisterDefaultRepositories()
Declaration
protected virtual void RegisterDefaultRepositories()
RegisterDefaultRepository(Type)
Declaration
protected virtual void RegisterDefaultRepository(Type entityType)
Parameters
Type |
Name |
Description |
Type |
entityType |
|
ShouldRegisterDefaultRepositoryFor(Type)
Declaration
protected virtual bool ShouldRegisterDefaultRepositoryFor(Type entityType)
Parameters
Type |
Name |
Description |
Type |
entityType |
|
Returns
Type |
Description |
System.Boolean |
|
Extension Methods