Table of Contents

Method InsertToDatabase

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

InsertToDatabase(List<T>, CancellationToken)

Inserts a list of entities into the database.

protected virtual Task<List<PrimaryKeys<T>>> InsertToDatabase(List<T> entities, CancellationToken cancellationToken = default)

Parameters

entities List<T>

The list of entities to insert.

cancellationToken CancellationToken

The cancellation token.

Returns

Task<List<PrimaryKeys<T>>>

A list of primary keys of the inserted entities.