Table of Contents

Class BasicBulkOperation<TEntity>

Namespace
Z.BulkOperations
Assembly
Z.EntityFramework.Extensions.dll

A basic bulk operation.

[Obsolete("Use BulkOperation class instead. This class will be removed at the start of 2019.")]
public class BasicBulkOperation<TEntity> : IDisposable where TEntity : class

Type Parameters

TEntity

Type of the entity.

Inheritance
BasicBulkOperation<TEntity>
Implements
Inherited Members

Constructors

BasicBulkOperation()

None constructor.

public BasicBulkOperation()

Properties

Advanced

Gets or sets the advanced.

public BulkOperation<TEntity> Advanced { get; }

Property Value

BulkOperation<TEntity>

The advanced.

BatchSize

Gets or sets the size of the batch.

public int BatchSize { get; set; }

Property Value

int

The size of the batch.

ColumnInputExpression

Gets or sets the column input expression.

public Expression<Func<TEntity, object>> ColumnInputExpression { get; set; }

Property Value

Expression<Func<TEntity, object>>

The column input expression.

ColumnMappings

Gets or sets the column mappings.

public List<BasicColumnMapping<TEntity>> ColumnMappings { get; set; }

Property Value

List<BasicColumnMapping<TEntity>>

The column mappings.

ColumnOutputExpression

Gets or sets the column output expression.

public Expression<Func<TEntity, object>> ColumnOutputExpression { get; set; }

Property Value

Expression<Func<TEntity, object>>

The column output expression.

ColumnPrimaryKeyExpression

Gets or sets the column primary key expression.

public Expression<Func<TEntity, object>> ColumnPrimaryKeyExpression { get; set; }

Property Value

Expression<Func<TEntity, object>>

The column primary key expression.

Connection

Gets or sets the connection.

public DbConnection Connection { get; set; }

Property Value

DbConnection

The connection.

DataSource

Gets or sets the data source.

public object DataSource { get; set; }

Property Value

object

The data source.

DestinationTableName

Gets or sets the name of the destination table.

public string DestinationTableName { get; set; }

Property Value

string

The name of the destination table.

Transaction

Gets or sets the transaction.

public DbTransaction Transaction { get; set; }

Property Value

DbTransaction

The transaction.

Methods

BulkDelete()

Bulk delete.

public void BulkDelete()

BulkDelete(List<TEntity>)

Bulk delete.

public void BulkDelete(List<TEntity> datasource)

Parameters

datasource List<TEntity>

The datasource.

BulkDeleteAsync(List<TEntity>, CancellationToken)

Bulk delete.

public virtual Task BulkDeleteAsync(List<TEntity> datasource, CancellationToken cancellationToken = default)

Parameters

datasource List<TEntity>

The datasource.

cancellationToken CancellationToken

The cancellation token.

Returns

Task

BulkDeleteAsync(CancellationToken)

Bulk delete.

public virtual Task BulkDeleteAsync(CancellationToken cancellationToken = default)

Parameters

cancellationToken CancellationToken

The cancellation token.

Returns

Task

BulkInsert()

Bulk insert.

public void BulkInsert()

BulkInsert(List<TEntity>)

Bulk insert.

public void BulkInsert(List<TEntity> datasource)

Parameters

datasource List<TEntity>

The datasource.

BulkInsertAsync(List<TEntity>, CancellationToken)

Bulk insert.

public virtual Task BulkInsertAsync(List<TEntity> datasource, CancellationToken cancellationToken = default)

Parameters

datasource List<TEntity>

The datasource.

cancellationToken CancellationToken

The cancellation token.

Returns

Task

BulkInsertAsync(CancellationToken)

Bulk insert.

public virtual Task BulkInsertAsync(CancellationToken cancellationToken = default)

Parameters

cancellationToken CancellationToken

The cancellation token.

Returns

Task

BulkMerge()

Bulk merge.

public void BulkMerge()

BulkMerge(List<TEntity>)

Bulk merge.

public void BulkMerge(List<TEntity> datasource)

Parameters

datasource List<TEntity>

The datasource.

BulkMergeAsync(List<TEntity>, CancellationToken)

Bulk merge.

public virtual Task BulkMergeAsync(List<TEntity> datasource, CancellationToken cancellationToken = default)

Parameters

datasource List<TEntity>

The datasource.

cancellationToken CancellationToken

The cancellation token.

Returns

Task

BulkMergeAsync(CancellationToken)

Bulk merge.

public virtual Task BulkMergeAsync(CancellationToken cancellationToken = default)

Parameters

cancellationToken CancellationToken

The cancellation token.

Returns

Task

BulkSynchronize()

Bulk synchronize.

public virtual void BulkSynchronize()

BulkSynchronize(List<TEntity>)

Bulk synchronize.

public virtual void BulkSynchronize(List<TEntity> datasource)

Parameters

datasource List<TEntity>

The datasource.

BulkSynchronizeAsync(List<TEntity>, CancellationToken)

Bulk synchronize.

public virtual Task BulkSynchronizeAsync(List<TEntity> datasource, CancellationToken cancellationToken = default)

Parameters

datasource List<TEntity>

The datasource.

cancellationToken CancellationToken

The cancellation token.

Returns

Task

BulkSynchronizeAsync(CancellationToken)

Bulk synchronize.

public virtual Task BulkSynchronizeAsync(CancellationToken cancellationToken = default)

Parameters

cancellationToken CancellationToken

The cancellation token.

Returns

Task

BulkUpdate()

Bulk update.

public void BulkUpdate()

BulkUpdate(List<TEntity>)

Bulk update.

public void BulkUpdate(List<TEntity> datasource)

Parameters

datasource List<TEntity>

The datasource.

BulkUpdateAsync(List<TEntity>, CancellationToken)

Bulk update.

public virtual Task BulkUpdateAsync(List<TEntity> datasource, CancellationToken cancellationToken = default)

Parameters

datasource List<TEntity>

The datasource.

cancellationToken CancellationToken

The cancellation token.

Returns

Task

BulkUpdateAsync(CancellationToken)

Bulk update.

public virtual Task BulkUpdateAsync(CancellationToken cancellationToken = default)

Parameters

cancellationToken CancellationToken

The cancellation token.

Returns

Task

Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

public void Dispose()