Interface IBulkSqlInsertProvider
Provides an interface for implementing bulk SQL insert operations in a database.
Namespace: Umbraco.Cms.Infrastructure.Persistence
Assembly: Umbraco.Infrastructure.dll
Syntax
public interface IBulkSqlInsertProvider
Properties
View SourceProviderName
Gets the unique name that identifies the bulk SQL insert provider implementation.
Declaration
string ProviderName { get; }
Property Value
| Type | Description |
|---|---|
| string |
Methods
View SourceBulkInsertRecords<T>(IUmbracoDatabase, IEnumerable<T>)
Inserts a collection of records of type T into the database in bulk.
Declaration
int BulkInsertRecords<T>(IUmbracoDatabase database, IEnumerable<T> records)
Parameters
| Type | Name | Description |
|---|---|---|
| IUmbracoDatabase | database | The IUmbracoDatabase instance to use for the bulk insert operation. |
| IEnumerable<T> | records | The collection of records to insert. |
Returns
| Type | Description |
|---|---|
| int | The number of records that were successfully inserted into the database. |
Type Parameters
| Name | Description |
|---|---|
| T | The type of records to insert. |