Class RepositoryRegistrarBase<TOptions>
Inheritance
object
RepositoryRegistrarBase<TOptions>
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 RepositoryRegistrarBase<TOptions> 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 |
| System.Type |
entityType |
|
Returns
| Type |
Description |
| System.Type |
|
GetEntityTypes(Type)
Declaration
protected abstract IEnumerable<Type> GetEntityTypes(Type dbContextType)
Parameters
| Type |
Name |
Description |
| System.Type |
dbContextType |
|
Returns
| Type |
Description |
| System.Collections.Generic.IEnumerable<T><System.Type> |
|
GetRepositoryType(Type, Type, Type)
Declaration
protected abstract Type GetRepositoryType(Type dbContextType, Type entityType, Type primaryKeyType)
Parameters
| Type |
Name |
Description |
| System.Type |
dbContextType |
|
| System.Type |
entityType |
|
| System.Type |
primaryKeyType |
|
Returns
| Type |
Description |
| System.Type |
|
GetRepositoryType(Type, Type)
Declaration
protected abstract Type GetRepositoryType(Type dbContextType, Type entityType)
Parameters
| Type |
Name |
Description |
| System.Type |
dbContextType |
|
| System.Type |
entityType |
|
Returns
| Type |
Description |
| System.Type |
|
RegisterCustomRepositories()
Declaration
protected virtual void RegisterCustomRepositories()
RegisterDefaultRepositories()
Declaration
protected virtual void RegisterDefaultRepositories()
RegisterDefaultRepository(Type)
Declaration
protected virtual void RegisterDefaultRepository(Type entityType)
Parameters
| Type |
Name |
Description |
| System.Type |
entityType |
|
RegisterSpecifiedDefaultRepositories()
Declaration
protected virtual void RegisterSpecifiedDefaultRepositories()
ShouldRegisterDefaultRepositoryFor(Type)
Declaration
protected virtual bool ShouldRegisterDefaultRepositoryFor(Type entityType)
Parameters
| Type |
Name |
Description |
| System.Type |
entityType |
|
Returns
Extension Methods