Method Create
Create(IPropertyValues, CancellationToken)
Creates a new entity with the provided property values.
public virtual Task<T> Create(IPropertyValues propertyValues, CancellationToken cancellationToken = default)
Parameters
propertyValues
IPropertyValuesThe property values of the entity.
cancellationToken
CancellationTokenThe cancellation token.
Returns
- Task<T>
The created entity.
Create<TInsert>(IPropertyValues)
Creates a new entity with the provided property values.
protected TInsert Create<TInsert>(IPropertyValues propertyValues) where TInsert : class
Parameters
propertyValues
IPropertyValuesThe property values of the entity.
Returns
- TInsert
The created entity.
Type Parameters
TInsert
The type of the entity to create.
Create()
Creates a new entity with the default property values.
protected T Create()
Returns
- T
The created entity.
Create(IPropertyValues)
Creates a new entity with the provided property values.
protected T Create(IPropertyValues propertyValues)
Parameters
propertyValues
IPropertyValuesThe property values of the entity.
Returns
- T
The created entity.