Show / Hide Table of Contents

Class RepositoryRegistrarBase<TOptions>

Inheritance
System.Object
RepositoryRegistrarBase<TOptions>
EfCoreRepositoryRegistrar
MemoryDbRepositoryRegistrar
MongoDbRepositoryRegistrar
Namespace: Volo.Abp.Domain.Repositories
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
Type Description
Type

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
Type Description
Type

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
Type Description
Type

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

AbpObjectExtensions.As<T>(Object)
AbpObjectExtensions.To<T>(Object)
AbpObjectExtensions.IsIn<T>(T, T[])
AbpObjectExtensions.If<T>(T, Boolean, Func<T, T>)
AbpObjectExtensions.If<T>(T, Boolean, Action<T>)
LockExtensions.Locking(Object, Action)
LockExtensions.Locking<T>(T, Action<T>)
LockExtensions.Locking<TResult>(Object, Func<TResult>)
LockExtensions.Locking<T, TResult>(T, Func<T, TResult>)
Back to top Powered by Volosoft