Class LLBLGenFindOneCommand
A llbl generate find one command.
Inheritance
System.Object
    
    
    
    
    LLBLGenFindOneCommand
  Implements
Inherited Members
      FindCommandBase<IFindOneContext>.GetCriteriaString<T>(IFindOneContext, Expression<Func<T, Boolean>>)
    
    
    
    
    
    
    
    
    
    
      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 LLBLGenFindOneCommand : FindOneCommand, ILoggable, IFindOneCommand, IDataCommand<IFindOneContext, IFindResult>, IDataCommand, IAsyncOperationConstructors
| Improve this Doc View SourceLLBLGenFindOneCommand(IEntityActivator)
Initializes a new instance of the LLBLGenFindOneCommand class.
Declaration
public LLBLGenFindOneCommand(IEntityActivator entityActivator)Parameters
| Type | Name | Description | 
|---|---|---|
| IEntityActivator | entityActivator | The entity activator. | 
Methods
| Improve this Doc View SourceFindAsync<T>(IFindOneContext, CancellationToken)
Searches for the first entity matching the provided criteria and returns it asynchronously.
Declaration
protected override Task<IFindResult> FindAsync<T>(IFindOneContext findContext, CancellationToken cancellationToken)
    where T : classParameters
| Type | Name | Description | 
|---|---|---|
| IFindOneContext | findContext | 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.IFindOneContext>.FindAsync<T>(Kephas.Data.Commands.IFindOneContext, System.Threading.CancellationToken)