Class LLBLGenFindCommand
The find command for the LLBLGen infrastructure.
Inheritance
System.Object
LLBLGenFindCommand
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.LLBLGen.Commands
Assembly: Kephas.Data.LLBLGen.dll
Syntax
[DataContextType(typeof(LLBLGenDataContext))]
public class LLBLGenFindCommand : FindCommand, ILoggable, IFindCommand, IDataCommand<IFindContext, IFindResult>, IDataCommand, IAsyncOperation
Constructors
| Improve this Doc View SourceLLBLGenFindCommand(IEntityActivator)
Initializes a new instance of the LLBLGenFindCommand class.
Declaration
public LLBLGenFindCommand(IEntityActivator entityActivator)
Parameters
Type | Name | Description |
---|---|---|
IEntityActivator | entityActivator | The entity activator. |
Methods
| Improve this Doc View SourceFindAsync<T>(IFindContext, CancellationToken)
Searches for the first entity matching the provided criteria and returns it asynchronously.
Declaration
protected override Task<IFindResult> FindAsync<T>(IFindContext operationContext, CancellationToken cancellationToken)
where T : class
Parameters
Type | Name | Description |
---|---|---|
IFindContext | operationContext | The find context. |
System.Threading.CancellationToken | cancellationToken | The cancellation token (optional). |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<IFindResult> | A promise of the found entity. |
Type Parameters
Name | Description |
---|---|
T | The type of the entity. |
Overrides
Kephas.Data.Commands.FindCommandBase<Kephas.Data.Commands.IFindContext>.FindAsync<T>(Kephas.Data.Commands.IFindContext, System.Threading.CancellationToken)