Method Create
Create<TInsert>(IPropertyValues, CancellationToken)
Creates a new entity with the provided property values.
protected Task<TInsert> Create<TInsert>(IPropertyValues propertyValues, CancellationToken cancellationToken = default) where TInsert : class
Parameters
propertyValuesIPropertyValuesThe property values of the entity.
cancellationTokenCancellationToken
Returns
- Task<TInsert>
The created entity.
Type Parameters
TInsertThe type of the entity to create.
Create(CancellationToken)
Creates a new instance of the entity of type T.
public virtual Task<T> Create(CancellationToken cancellationToken = default)
Parameters
cancellationTokenCancellationTokenThe cancellation token.
Returns
- Task<T>
A task that represents the asynchronous operation. The task result contains the newly created entity instance.