Class FindOneContext<T>
The default implementation of a find operationContext.
Inheritance
System.Object
System.Dynamic.DynamicObject
FindOneContext<T>
Implements
System.Dynamic.IDynamicMetaObjectProvider
System.IDisposable
Inherited Members
System.Dynamic.DynamicObject.GetMetaObject(System.Linq.Expressions.Expression)
System.Dynamic.DynamicObject.TryBinaryOperation(System.Dynamic.BinaryOperationBinder, System.Object, System.Object)
System.Dynamic.DynamicObject.TryConvert(System.Dynamic.ConvertBinder, System.Object)
System.Dynamic.DynamicObject.TryCreateInstance(System.Dynamic.CreateInstanceBinder, System.Object[], System.Object)
System.Dynamic.DynamicObject.TryDeleteIndex(System.Dynamic.DeleteIndexBinder, System.Object[])
System.Dynamic.DynamicObject.TryDeleteMember(System.Dynamic.DeleteMemberBinder)
System.Dynamic.DynamicObject.TryGetIndex(System.Dynamic.GetIndexBinder, System.Object[], System.Object)
System.Dynamic.DynamicObject.TryInvoke(System.Dynamic.InvokeBinder, System.Object[], System.Object)
System.Dynamic.DynamicObject.TrySetIndex(System.Dynamic.SetIndexBinder, System.Object[], System.Object)
System.Dynamic.DynamicObject.TryUnaryOperation(System.Dynamic.UnaryOperationBinder, System.Object)
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 class FindOneContext<T> : FindOneContext, IFindOneContext<T>, IFindOneContext, IFindContextBase, IDataOperationContext, IContext, IExpando, IDynamicMetaObjectProvider, IIndexable, ILoggable, IDisposable
Type Parameters
Name | Description |
---|---|
T | The entity type. |
Constructors
| Improve this Doc View SourceFindOneContext(IDataContext, Expression<Func<T, Boolean>>, Boolean)
Initializes a new instance of the FindOneContext<T> class.
Declaration
public FindOneContext(IDataContext dataContext, Expression<Func<T, bool>> criteria, bool throwIfNotFound = true)
Parameters
Type | Name | Description |
---|---|---|
IDataContext | dataContext | The data context. |
System.Linq.Expressions.Expression<System.Func<T, System.Boolean>> | criteria | The criteria for finding the entity. |
System.Boolean | throwIfNotFound |
|
Properties
| Improve this Doc View SourceCriteria
Gets or sets the criteria for finding the entity.
Declaration
public Expression<Func<T, bool>> Criteria { get; set; }
Property Value
Type | Description |
---|---|
System.Linq.Expressions.Expression<System.Func<T, System.Boolean>> | The criteria for finding the entity. |
Implements
System.Dynamic.IDynamicMetaObjectProvider
System.IDisposable