Skip to end of metadata
Go to start of metadata

Defines methods for managing asynchronous data repository.

Definition

public interface IAsyncDataRepository<TEntity, TKey> : IAsyncDataRepository<TEntity>

where TEntity : class

Type Parameters

TEntity The type of the entity.
TKey The type of the key.

Summary

The following table summarizes the members exposed in this interface.

Methods

GetSingleAsync(TKey) Gets a single item asynchronously using the specified entity key.
GetSingleAsync(TKey, String[]) Gets a single item asynchronously using the specified entity key and the navigation properties to be included.

Methods

Task<TEntity> GetSingleAsync(TKey key)

Gets a single item asynchronously using the specified entity key.

Parameters

key The key.

Task<TEntity> GetSingleAsync(TKey key, String[] includes)

Gets a single item asynchronously using the specified entity key and the navigation properties to be included.

Parameters

key Key.
includes Includes.
  • No labels