Table of Contents

Method Create

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

Create(IPropertyValues, CancellationToken)

Creates a new entity with the provided property values.

public virtual Task<T> Create(IPropertyValues propertyValues, CancellationToken cancellationToken = default)

Parameters

propertyValues IPropertyValues

The property values of the entity.

cancellationToken CancellationToken

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

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

The property values of the entity.

Returns

T

The created entity.