Click or drag to resize

LinqExtensions Class

Contains extension methods, designed to be used in LINQ queries
Inheritance Hierarchy
SystemObject
  Aloe.SystemFrameworks.Domain.LINQLinqExtensions

Namespace:  Aloe.SystemFrameworks.Domain.LINQ
Assembly:  Aloe.SystemFrameworks.Domain (in Aloe.SystemFrameworks.Domain.dll) Version: 20.1.3.5
Syntax
public static class LinqExtensions

The LinqExtensions type exposes the following members.

Methods
  NameDescription
Public methodStatic memberDomainEqual
If the objects are DomainObject this method uses == operator.
Public methodStatic memberEqualNull
Returns true if the object is equal to the value or the object is null.
Public methodStatic memberGreaterEqualNull
Returns true if the object is greater than or equal to the value or the object is null.
Public methodStatic memberIn(Guid, IEnumerable)
Returns true if list contains the specified id. Primarily intended for use inside IQueryable/IEnumerable queries
Public methodStatic memberIn(NullableGuid, IEnumerable)
Returns true if list contains the specified id. Primarily intended for use inside IQueryable/IEnumerable queries
Public methodStatic memberIn(Object, IEnumerable)
Returns true if list contains the specified object. Primarily intended for use inside IQueryable/IEnumerable queries
Public methodStatic memberLessEqualNull
Returns true if the object is less than or equal to the value or the object is null.
Public methodStatic memberLike
Returns a bool indicating whether the string mathes the given like pattern (use '%' for wildchar)
Public methodStatic memberPreloadTSource(IEnumerableTSource)
Preloads the full object state for all objects in source.
Public methodStatic memberPreloadTSource(IEnumerableTSource, ILazyProperty)
Preloads the value of the specified lazy property for the objects in the sequence.
Public methodStatic memberPreloadTSource, TResult(IEnumerableTSource, ExpressionFuncTSource, TResult)
Preloads the full object state for all objects returned by applying the expression to each element in source. This is still a research method, which will be renamed later to .Preload().
Top
Remarks
The LinqExtensions class contains static extension methods, which can be used as general-purpose methods, but are designed to be used for domain objects LINQ queries. The domain objects LINQ translator recognizes these methods and converts them to efficient data source query methods. These methods also work on IEnuremable, but in a less efficient way.
See Also