ExpressionHelper Methods

Provides methods to perform operations with lambda expression trees.
Name Description
Equals(Object) Determines whether the specified object is equal to the current object. Inherited from Object.
Equals(Object, Object) static Determines whether the specified object instances are considered equal. Inherited from Object.
GetEntityTraits<TOwner, TPropertyOwner, TProperty>(TOwner, Expression<Func<TPropertyOwner, TProperty>>) static Returns an instance of the EntityTraits class that encapsulates operations to obtain and set the primary key value of a given entity.
GetHashCode() Serves as the default hash function. Inherited from Object.
GetKeyEqualsExpression<TGetKeyExpressionOwner, TPropertyOwner, TPrimaryKey>(Expression<Func<TGetKeyExpressionOwner, TPrimaryKey>>, Object, ParameterExpression) static
GetKeyProperties<TPropertyOwner, TProperty>(Expression<Func<TPropertyOwner, TProperty>>) static Gets an array of PropertyInfo objects that describe the properties that comprise the primary key of the TPropertyOwner type.
GetKeyPropertyValues(Object) static If value is a Tuple, this method collects its items into an array of objects. For other types it creates an array of objects with the value being its only element.
GetPropertyExpression<TOwner, TProperty>(String) static Get an expression with incapsulating a lamda that given an object of type TOwner returns the value of property propertyName.
GetPropertyName(LambdaExpression) static Converts a property reference represented as a lambda expression to a property name.
GetSetKeyAction<TPropertyOwner, TProperty>(Expression<Func<TPropertyOwner, TProperty>>) static
GetSetKeyUntypedAction<TPropertyOwner, TProperty>(Expression<Func<TPropertyOwner, TProperty>>) static
GetType() Gets the Type of the current instance. Inherited from Object.
IsFitEntity<TEntity>(TEntity, Expression<Func<TEntity, Boolean>>) static Determines whether the given entity satisfies the condition represented by a lambda expression.
IsTuple(Type) static
MakeTuple<TupleType>(Object[]) static Creates an instance of a generic Tuple type from items.
MemberwiseClone() protected Creates a shallow copy of the current Object. Inherited from Object.
ReferenceEquals(Object, Object) static Determines whether the specified Object instances are the same instance. Inherited from Object.
ToString() Returns a string that represents the current object. Inherited from Object.
See Also