Table of Contents

Method Create

Namespace
Innova.Data.Entity
Assembly
Innova.Data.dll

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 IPropertyValues

The 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 CancellationToken

The cancellation token.

Returns

Task<T>

A task that represents the asynchronous operation. The task result contains the newly created entity instance.