Show / Hide Table of Contents

Class MongoBulkUpdateCommand

A MongoDB bulk update command.

Inheritance
System.Object
Loggable
DataCommandBase<IBulkUpdateContext, IBulkDataOperationResult>
BulkOperationCommandBase<IBulkUpdateContext, IBulkDataOperationResult>
BulkUpdateCommand
MongoBulkUpdateCommand
Implements
ILoggable
IBulkUpdateCommand
IDataCommand<IBulkUpdateContext, IBulkDataOperationResult>
IDataCommand
IAsyncOperation
Inherited Members
BulkUpdateCommand.ExecuteAsync(IBulkUpdateContext, CancellationToken)
BulkUpdateCommand.BulkUpdateAsync<T>(IBulkUpdateContext, CancellationToken)
BulkUpdateCommand.UpdateEntity<T>(T, IDictionary<String, Object>)
BulkOperationCommandBase<IBulkUpdateContext, IBulkDataOperationResult>.GetMatchingCriteria<T>(IBulkUpdateContext)
BulkOperationCommandBase<IBulkUpdateContext, IBulkDataOperationResult>.GetBulkOperationResult<T>(IBulkUpdateContext, Int64, Int64, Expression<Func<T, Boolean>>)
BulkOperationCommandBase<IBulkUpdateContext, IBulkDataOperationResult>.CreateBulkOperationResult<T>(IBulkUpdateContext, Int64, Exception)
BulkOperationCommandBase<IBulkUpdateContext, IBulkDataOperationResult>.GetCriteriaString<T>(IBulkDataOperationContext, Expression<Func<T, Boolean>>)
DataCommandBase<IBulkUpdateContext, IBulkDataOperationResult>.ExecuteAsync(IBulkUpdateContext, CancellationToken)
DataCommandBase<IBulkUpdateContext, IBulkDataOperationResult>.IDataCommand.ExecuteAsync(IDataOperationContext, CancellationToken)
DataCommandBase<IBulkUpdateContext, IBulkDataOperationResult>.IAsyncOperation.ExecuteAsync(IContext, CancellationToken)
DataCommandBase<IBulkUpdateContext, IBulkDataOperationResult>.GetIdEqualityExpression<T>(IDataContext, Object)
DataCommandBase<IBulkUpdateContext, IBulkDataOperationResult>.TryGetLocalCache(IDataContext)
DataCommandBase<IBulkUpdateContext, IBulkDataOperationResult>.TryGetEntityActivator(IDataContext)
Loggable.Logger
Loggable.GetLogger()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Kephas.Data.MongoDB.Commands
Assembly: Kephas.Data.MongoDB.dll
Syntax
[DataContextType(typeof(MongoDataContext))]
public class MongoBulkUpdateCommand : BulkUpdateCommand, ILoggable, IBulkUpdateCommand, IDataCommand<IBulkUpdateContext, IBulkDataOperationResult>, IDataCommand, IAsyncOperation

Methods

| Improve this Doc View Source

BulkUpdateCoreAsync<T>(IBulkUpdateContext, Expression<Func<T, Boolean>>, IDictionary<String, Object>, CancellationToken)

Updates the entities matching the provided criteria and returns the number of affected entities.

Declaration
protected override Task<long> BulkUpdateCoreAsync<T>(IBulkUpdateContext bulkDeleteContext, Expression<Func<T, bool>> criteria, IDictionary<string, object> values, CancellationToken cancellationToken)

    where T : class
Parameters
Type Name Description
IBulkUpdateContext bulkDeleteContext

The bulk delete context.

System.Linq.Expressions.Expression<System.Func<T, System.Boolean>> criteria

The criteria for finding the entities to operate on.

System.Collections.Generic.IDictionary<System.String, System.Object> values

The values.

System.Threading.CancellationToken cancellationToken

The cancellation token.

Returns
Type Description
System.Threading.Tasks.Task<System.Int64>

A promise of the number of updated entities.

Type Parameters
Name Description
T

The type of the entity.

Overrides
Kephas.Data.Commands.BulkUpdateCommand.BulkUpdateCoreAsync<T>(Kephas.Data.Commands.IBulkUpdateContext, System.Linq.Expressions.Expression<System.Func<T, System.Boolean>>, System.Collections.Generic.IDictionary<System.String, System.Object>, System.Threading.CancellationToken)

Implements

ILoggable
IBulkUpdateCommand
IDataCommand<TOperationContext, TResult>
IDataCommand
IAsyncOperation

Extension Methods

DynamicObjectExtensions.SetPropertyValue(Object, String, Object)
DynamicObjectExtensions.TrySetPropertyValue(Object, String, Object)
DynamicObjectExtensions.GetPropertyValue(Object, String)
DynamicObjectExtensions.TryGetPropertyValue(Object, String, out Object)
DynamicObjectExtensions.GetRuntimeTypeInfo(Object)
DynamicObjectExtensions.ToDynamic(Object)
DynamicObjectExtensions.ToExpando(Object)
BehaviorValue.ToBehaviorValue<TValue>(TValue)
CollectionExtensions.AddRange<T, TItem>(T, IEnumerable<TItem>)
LoggingExtensions.GetLogger(Object, IContext)
TypeExtensions.GetAbstractType(Object)
TypeExtensions.GetAbstractTypeInfo(Object)
ReflectionHelper.GetTypeInfo(Object)
EntityEntryExtensions.TryGetAttachedEntityEntry(Object)
  • Improve this Doc
  • View Source
Back to top Generated by DocFX