Show / Hide Table of Contents

Class RepositoryRegistrarBase<TOptions>

Inheritance
object
RepositoryRegistrarBase<TOptions>
RepositoryRegistration_Tests.MyTestRepositoryRegistrar
EfCoreRepositoryRegistrar
MemoryDbRepositoryRegistrar
MongoDbRepositoryRegistrar
Inherited Members
object.GetType()
object.MemberwiseClone()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
Namespace: Volo.Abp.Domain.Repositories
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
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

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

RegisterSpecifiedDefaultRepositories()

Declaration
protected virtual void RegisterSpecifiedDefaultRepositories()

ShouldRegisterDefaultRepositoryFor(Type)

Declaration
protected virtual bool ShouldRegisterDefaultRepositoryFor(Type entityType)
Parameters
Type Name Description
Type entityType
Returns
Type Description
bool

Extension Methods

AbpObjectExtensions.As<T>(object)
AbpObjectExtensions.To<T>(object)
LockExtensions.Locking(object, Action)
LockExtensions.Locking<TResult>(object, Func<TResult>)
AbpObjectExtensions.If<T>(T, bool, Action<T>)
AbpObjectExtensions.If<T>(T, bool, Func<T, T>)
AbpObjectExtensions.IsIn<T>(T, IEnumerable<T>)
AbpObjectExtensions.IsIn<T>(T, params T[])
AbpQueryableExtensions.OrderByIf<T, TQueryable>(TQueryable, bool, string)
AbpQueryableExtensions.PageBy<T, TQueryable>(TQueryable, int, int)
AbpQueryableExtensions.WhereIf<T, TQueryable>(TQueryable, bool, Expression<Func<T, bool>>)
AbpQueryableExtensions.WhereIf<T, TQueryable>(TQueryable, bool, Expression<Func<T, int, bool>>)
AbpOpenIddictQueryableExtensions.SkipIf<T, TQueryable>(TQueryable, bool, int?)
AbpOpenIddictQueryableExtensions.TakeIf<T, TQueryable>(TQueryable, bool, int?)
LockExtensions.Locking<T>(T, Action<T>)
LockExtensions.Locking<T, TResult>(T, Func<T, TResult>)
In this article
Back to top Powered by ABP.IO Platform