Table of Contents

Method Create

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

Create<T>(IEntityService<T>, CancellationToken)

Creates a new entity of type T using the IEntityService.

public static Task<T> Create<T>(this IEntityService<T> entityService, CancellationToken cancellationToken = default) where T : class

Parameters

entityService IEntityService<T>

The IEntityService instance.

cancellationToken CancellationToken

The cancellation token.

Returns

Task<T>

A task representing the asynchronous operation.

Type Parameters

T

The type of the entity.