Show / Hide Table of Contents

Class MemoryDbCoreRepositoryExtensions

Inheritance
object
MemoryDbCoreRepositoryExtensions
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.MemoryDb.dll
Syntax
public static class MemoryDbCoreRepositoryExtensions

Methods

GetCollectionAsync<TEntity, TKey>(IBasicRepository<TEntity, TKey>)

Declaration
public static Task<IMemoryDatabaseCollection<TEntity>> GetCollectionAsync<TEntity, TKey>(this IBasicRepository<TEntity, TKey> repository) where TEntity : class, IEntity<TKey>
Parameters
Type Name Description
IBasicRepository<TEntity, TKey> repository
Returns
Type Description
Task<IMemoryDatabaseCollection<TEntity>>
Type Parameters
Name Description
TEntity
TKey

GetCollection<TEntity, TKey>(IBasicRepository<TEntity, TKey>)

Declaration
[Obsolete("Use GetCollectionAsync method.")]
public static IMemoryDatabaseCollection<TEntity> GetCollection<TEntity, TKey>(this IBasicRepository<TEntity, TKey> repository) where TEntity : class, IEntity<TKey>
Parameters
Type Name Description
IBasicRepository<TEntity, TKey> repository
Returns
Type Description
IMemoryDatabaseCollection<TEntity>
Type Parameters
Name Description
TEntity
TKey

GetDatabaseAsync<TEntity, TKey>(IBasicRepository<TEntity, TKey>)

Declaration
public static Task<IMemoryDatabase> GetDatabaseAsync<TEntity, TKey>(this IBasicRepository<TEntity, TKey> repository) where TEntity : class, IEntity<TKey>
Parameters
Type Name Description
IBasicRepository<TEntity, TKey> repository
Returns
Type Description
Task<IMemoryDatabase>
Type Parameters
Name Description
TEntity
TKey

GetDatabase<TEntity, TKey>(IBasicRepository<TEntity, TKey>)

Declaration
[Obsolete("Use GetDatabaseAsync method.")]
public static IMemoryDatabase GetDatabase<TEntity, TKey>(this IBasicRepository<TEntity, TKey> repository) where TEntity : class, IEntity<TKey>
Parameters
Type Name Description
IBasicRepository<TEntity, TKey> repository
Returns
Type Description
IMemoryDatabase
Type Parameters
Name Description
TEntity
TKey

ToMemoryDbRepository<TEntity, TKey>(IBasicRepository<TEntity, TKey>)

Declaration
public static IMemoryDbRepository<TEntity, TKey> ToMemoryDbRepository<TEntity, TKey>(this IBasicRepository<TEntity, TKey> repository) where TEntity : class, IEntity<TKey>
Parameters
Type Name Description
IBasicRepository<TEntity, TKey> repository
Returns
Type Description
IMemoryDbRepository<TEntity, TKey>
Type Parameters
Name Description
TEntity
TKey
In this article
Back to top Powered by ABP.IO Platform