Table of Contents

Class BatchUpdateManager

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

Manage EF+ Batch Update Configuration.

public class BatchUpdateManager
Inheritance
BatchUpdateManager
Inherited Members

Constructors

BatchUpdateManager()

public BatchUpdateManager()

Fields

InternalHooks

public static List<Tuple<Type, Expression>> InternalHooks

Field Value

List<Tuple<Type, Expression>>

Properties

BatchUpdateBuilder

Gets or sets the batch update builder to change default configuration.

public static Action<BatchUpdate> BatchUpdateBuilder { get; set; }

Property Value

Action<BatchUpdate>

The batch update builder to change default configuration.

IsInMemoryQuery

Gets or sets a value indicating whether this object is in memory query.

public static bool IsInMemoryQuery { get; set; }

Property Value

bool

True if this object is in memory query, false if not.

UseMySqlSchema

Gets or sets a value indicating whether this object use schema for MySQL provider.

public static bool UseMySqlSchema { get; set; }

Property Value

bool

True if use schema for MySQL provider, false if not.

Methods

Hook<T>(Expression<Func<object>>)

Adds a hook that will always happen when the BatchUpdate will be called for a specific type (usually interface). Only variable and hardcoded value is allowed for this hook.

public static void Hook<T>(Expression<Func<object>> hook)

Parameters

hook Expression<Func<object>>

The hook.

Type Parameters

T

Hook<T>(Expression<Func<T, T>>)

Adds a hook that will always happen when the BatchUpdate will be called for a specific type.

public static void Hook<T>(Expression<Func<T, T>> hook)

Parameters

hook Expression<Func<T, T>>

The hook.

Type Parameters

T