Defines methods from managing data repository.
Definition
public interface IDataRepository<TEntity>
where TEntity : class
Type Parameters
TEntity | The type of the entity. |
Summary
The following table summarizes the members exposed in this interface.
Methods
GetAll() | Gets all items using default select parameter. |
GetAll(ISelectParameter) | Gets all items using the specified select parameter. |
GetSingle(object) | Gets a single item using the specified entity key. |
GetSingle(Dictionary<string, object>) | Gets a single item using the specified entity keys. |
Methods
ICollection<TEntity> GetAll()
Gets all items using default select parameter.
ICollection<TEntity> GetAll(ISelectParameter selectParameter)
Gets all items using the specified select parameter.
Parameters
selectParameter | The select parameter. |
TEntity GetSingle(object key)
Gets a single item using the specified entity key.
Parameters
key | The key. |
TEntity GetSingle(Dictionary<string, object> keys)
Gets a single item using the specified entity keys.
Parameters
keys | The keys. |