Interface IWacCrudService<TEntity, TFilter, TDto, TNewDto>
Assembly: WaCore.Crud.Contracts.dll
Syntax
public interface IWacCrudService<TEntity, TFilter, TDto, TNewDto> : IWacListDataService<TFilter, TDto> where TEntity : class, new ()where TFilter : IWacFilter
Type Parameters
Name |
Description |
TEntity |
|
TFilter |
|
TDto |
|
TNewDto |
|
Methods
|
Improve this Doc
View Source
Create(TNewDto)
Declaration
Parameters
Type |
Name |
Description |
TNewDto |
dto |
|
Returns
|
Improve this Doc
View Source
CreateAsync(TNewDto)
Declaration
Task<TDto> CreateAsync(TNewDto dto)
Parameters
Type |
Name |
Description |
TNewDto |
dto |
|
Returns
Type |
Description |
System.Threading.Tasks.Task<TDto> |
|
|
Improve this Doc
View Source
Delete(Object)
Declaration
Parameters
Type |
Name |
Description |
System.Object |
id |
|
|
Improve this Doc
View Source
DeleteAsync(Object)
Declaration
Task DeleteAsync(object id)
Parameters
Type |
Name |
Description |
System.Object |
id |
|
Returns
Type |
Description |
System.Threading.Tasks.Task |
|
|
Improve this Doc
View Source
MapDtoToEntity(TNewDto, TEntity, Operation)
Declaration
void MapDtoToEntity(TNewDto dto, TEntity entityToCreateOrUpdate, Operation operation)
Parameters
Type |
Name |
Description |
TNewDto |
dto |
|
TEntity |
entityToCreateOrUpdate |
|
Operation |
operation |
|
|
Improve this Doc
View Source
Update(Object, TNewDto)
Declaration
TDto Update(object id, TNewDto dto)
Parameters
Type |
Name |
Description |
System.Object |
id |
|
TNewDto |
dto |
|
Returns
|
Improve this Doc
View Source
UpdateAsync(Object, TNewDto)
Declaration
Task<TDto> UpdateAsync(object id, TNewDto dto)
Parameters
Type |
Name |
Description |
System.Object |
id |
|
TNewDto |
dto |
|
Returns
Type |
Description |
System.Threading.Tasks.Task<TDto> |
|