Method Create
Create<T>(IEntityService<T>, CancellationToken)
Creates a new entity of type T using the IEntityService.
public static Task<T> Create<T>(this IEntityService<T> entityService, CancellationToken cancellationToken = default) where T : class
Parameters
entityService
IEntityService<T>The IEntityService instance.
cancellationToken
CancellationTokenThe cancellation token.
Returns
- Task<T>
A task representing the asynchronous operation.
Type Parameters
T
The type of the entity.