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
propertyValues
IPropertyValuesThe property values of the entity.
cancellationToken
CancellationToken
Returns
- Task<TInsert>
The created entity.
Type Parameters
TInsert
The 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
cancellationToken
CancellationTokenThe cancellation token.
Returns
- Task<T>
A task that represents the asynchronous operation. The task result contains the newly created entity instance.