Class FindCommand
Base class for find commands.
Inheritance
System.Object
FindCommand
Implements
Inherited Members
FindCommandBase<IFindContext>.GetFindResult<T>(IFindContext, IList<T>, Expression<Func<T, Boolean>>)
DataCommandBase<IFindContext, IFindResult>.IAsyncOperation.ExecuteAsync(IContext, CancellationToken)
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 SourceExecuteAsync(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)