Class WacCrudService<TEntity, TFilter, TDto, TNewDto>
Inheritance
System.Object
WacCrudService<TEntity, TFilter, TDto, TNewDto>
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Assembly: WaCore.Crud.Services.dll
Syntax
public abstract class WacCrudService<TEntity, TFilter, TDto, TNewDto> : WacListDataService<TEntity, TFilter, TDto>, IWacCrudService<TEntity, TFilter, TDto, TNewDto>, IWacListDataService<TFilter, TDto> where TEntity : class, new ()where TFilter : IWacFilter
Type Parameters
Name |
Description |
TEntity |
|
TFilter |
|
TDto |
|
TNewDto |
|
Constructors
|
Improve this Doc
View Source
WacCrudService(IWacUnitOfWork)
Declaration
public WacCrudService(IWacUnitOfWork unitOfWork)
Parameters
Fields
|
Improve this Doc
View Source
UnitOfWork
Declaration
protected IWacUnitOfWork UnitOfWork
Field Value
Methods
|
Improve this Doc
View Source
Create(TNewDto)
Declaration
public virtual TDto Create(TNewDto dto)
Parameters
Type |
Name |
Description |
TNewDto |
dto |
|
Returns
|
Improve this Doc
View Source
CreateAsync(TNewDto)
Declaration
public virtual 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
public virtual void Delete(object id)
Parameters
Type |
Name |
Description |
System.Object |
id |
|
|
Improve this Doc
View Source
DeleteAsync(Object)
Declaration
public virtual 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
public abstract 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
public virtual 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
public virtual Task<TDto> UpdateAsync(object id, TNewDto dto)
Parameters
Type |
Name |
Description |
System.Object |
id |
|
TNewDto |
dto |
|
Returns
Type |
Description |
System.Threading.Tasks.Task<TDto> |
|
Implements