Interface IWacRepository<TEntity>
Assembly: WaCore.Contracts.dll
Syntax
public interface IWacRepository<TEntity>
where TEntity : class
Type Parameters
Methods
|
Improve this Doc
View Source
Add(TEntity)
Declaration
Parameters
Type |
Name |
Description |
TEntity |
entity |
|
|
Improve this Doc
View Source
Get(Object)
Declaration
Parameters
Type |
Name |
Description |
System.Object |
id |
|
Returns
|
Improve this Doc
View Source
GetAll()
Declaration
Returns
Type |
Description |
System.Collections.Generic.IList<TEntity> |
|
|
Improve this Doc
View Source
GetAllAsync(CancellationToken)
Declaration
Task<IList<TEntity>> GetAllAsync(CancellationToken cancellationToken = default (CancellationToken))
Parameters
Type |
Name |
Description |
System.Threading.CancellationToken |
cancellationToken |
|
Returns
Type |
Description |
System.Threading.Tasks.Task<System.Collections.Generic.IList<TEntity>> |
|
|
Improve this Doc
View Source
GetAsync(Object, CancellationToken)
Declaration
Task<TEntity> GetAsync(object id, CancellationToken cancellationToken = default (CancellationToken))
Parameters
Type |
Name |
Description |
System.Object |
id |
|
System.Threading.CancellationToken |
cancellationToken |
|
Returns
Type |
Description |
System.Threading.Tasks.Task<TEntity> |
|
|
Improve this Doc
View Source
Remove(TEntity)
Declaration
void Remove(TEntity entity)
Parameters
Type |
Name |
Description |
TEntity |
entity |
|
|
Improve this Doc
View Source
Update(TEntity)
Declaration
void Update(TEntity entity)
Parameters
Type |
Name |
Description |
TEntity |
entity |
|