Show / Hide Table of Contents

Class FindCommand

Base class for find commands.

Inheritance
System.Object
Loggable
DataCommandBase<IFindContext, IFindResult>
FindCommandBase<IFindContext>
FindCommand
LLBLGenFindCommand
Implements
ILoggable
IFindCommand
IDataCommand<IFindContext, IFindResult>
IDataCommand
IAsyncOperation
Inherited Members
FindCommandBase<IFindContext>.FindAsync<T>(IFindContext, CancellationToken)
FindCommandBase<IFindContext>.TryGetLocalCacheQuery<T>(IFindContext)
FindCommandBase<IFindContext>.GetFindResult<T>(IFindContext, IList<T>, Expression<Func<T, Boolean>>)
DataCommandBase<IFindContext, IFindResult>.ExecuteAsync(IFindContext, CancellationToken)
DataCommandBase<IFindContext, IFindResult>.IDataCommand.ExecuteAsync(IDataOperationContext, CancellationToken)
DataCommandBase<IFindContext, IFindResult>.IAsyncOperation.ExecuteAsync(IContext, CancellationToken)
DataCommandBase<IFindContext, IFindResult>.GetIdEqualityExpression<T>(IDataContext, Object)
DataCommandBase<IFindContext, IFindResult>.TryGetLocalCache(IDataContext)
DataCommandBase<IFindContext, IFindResult>.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
[DataContextType(typeof(DataContextBase))]
public class FindCommand : FindCommandBase<IFindContext>, ILoggable, IFindCommand, IDataCommand<IFindContext, IFindResult>, IDataCommand, IAsyncOperation

Methods

| Improve this Doc View Source

ExecuteAsync(IFindContext, CancellationToken)

Executes the data command asynchronously.

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

The operation context.

System.Threading.CancellationToken cancellationToken

The cancellation token (optional).

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

A promise of a IDataCommandResult.

Overrides
Kephas.Data.Commands.FindCommandBase<Kephas.Data.Commands.IFindContext>.ExecuteAsync(Kephas.Data.Commands.IFindContext, System.Threading.CancellationToken)
| Improve this Doc View Source

GetCriteriaString<T>(IFindContext, Expression<Func<T, Boolean>>)

Gets the criteria string for exception display.

Declaration
protected override string GetCriteriaString<T>(IFindContext findContext, Expression<Func<T, bool>> criteria)
Parameters
Type Name Description
IFindContext findContext

The find context.

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

The criteria.

Returns
Type Description
System.String

The criteria string.

Type Parameters
Name Description
T

The entity type.

Overrides
Kephas.Data.Commands.FindCommandBase<Kephas.Data.Commands.IFindContext>.GetCriteriaString<T>(Kephas.Data.Commands.IFindContext, System.Linq.Expressions.Expression<System.Func<T, System.Boolean>>)
| Improve this Doc View Source

GetFindCriteria<T>(IFindContext)

Gets the find criteria.

Declaration
protected override Expression<Func<T, bool>> GetFindCriteria<T>(IFindContext findContext)

    where T : class
Parameters
Type Name Description
IFindContext findContext

The find context.

Returns
Type Description
System.Linq.Expressions.Expression<System.Func<T, System.Boolean>>

The find criteria.

Type Parameters
Name Description
T

Generic type parameter.

Overrides
Kephas.Data.Commands.FindCommandBase<Kephas.Data.Commands.IFindContext>.GetFindCriteria<T>(Kephas.Data.Commands.IFindContext)

Implements

ILoggable
IFindCommand
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