Show / Hide Table of Contents

Class SyncDataCommandBase<TOperationContext, TResult>

Base implementation of a synchronous data command.

Inheritance
System.Object
Loggable
DataCommandBase<TOperationContext, TResult>
SyncDataCommandBase<TOperationContext, TResult>
DeleteEntityCommand
DiscardChangesCommand
Implements
ILoggable
IDataCommand<TOperationContext, TResult>
IDataCommand
IAsyncOperation
ISyncDataCommand<TOperationContext, TResult>
ISyncDataCommand
Inherited Members
DataCommandBase<TOperationContext, TResult>.ExecuteAsync(TOperationContext, CancellationToken)
DataCommandBase<TOperationContext, TResult>.IDataCommand.ExecuteAsync(IDataOperationContext, CancellationToken)
DataCommandBase<TOperationContext, TResult>.IAsyncOperation.ExecuteAsync(IContext, CancellationToken)
DataCommandBase<TOperationContext, TResult>.GetIdEqualityExpression<T>(IDataContext, Object)
DataCommandBase<TOperationContext, TResult>.TryGetLocalCache(IDataContext)
DataCommandBase<TOperationContext, TResult>.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.Commands
Assembly: Kephas.Data.dll
Syntax
public abstract class SyncDataCommandBase<TOperationContext, TResult> : DataCommandBase<TOperationContext, TResult>, ILoggable, IDataCommand<TOperationContext, TResult>, IDataCommand, IAsyncOperation, ISyncDataCommand<TOperationContext, TResult>, ISyncDataCommand where TOperationContext : IDataOperationContext where TResult : IDataCommandResult
Type Parameters
Name Description
TOperationContext

Type of the operationContext.

TResult

Type of the result.

Methods

| Improve this Doc View Source

Execute(TOperationContext)

Executes the data command.

Declaration
public abstract TResult Execute(TOperationContext operationContext)
Parameters
Type Name Description
TOperationContext operationContext

The operation context.

Returns
Type Description
TResult

A IDataCommandResult.

| Improve this Doc View Source

ExecuteAsync(TOperationContext, CancellationToken)

Executes the data command asynchronously.

Declaration
public override Task<TResult> ExecuteAsync(TOperationContext operationContext, CancellationToken cancellationToken = default(CancellationToken))
Parameters
Type Name Description
TOperationContext operationContext

The operation context.

System.Threading.CancellationToken cancellationToken

The cancellation token (optional).

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

A promise of a IDataCommandResult.

Overrides
Kephas.Data.Commands.DataCommandBase<TOperationContext, TResult>.ExecuteAsync(TOperationContext, System.Threading.CancellationToken)

Explicit Interface Implementations

| Improve this Doc View Source

ISyncDataCommand.Execute(IDataOperationContext)

Executes the data command.

Declaration
IDataCommandResult ISyncDataCommand.Execute(IDataOperationContext operationContext)
Parameters
Type Name Description
IDataOperationContext operationContext

The operation context.

Returns
Type Description
IDataCommandResult

A IDataCommandResult.

Implements

ILoggable
IDataCommand<TOperationContext, TResult>
IDataCommand
IAsyncOperation
ISyncDataCommand<TOperationContext, TResult>
ISyncDataCommand

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