Click or drag to resize

DocumentsRepositoryStaticAreReleasedAndNonVoidTObject Method

Returns a filter which returns only documents whose state is Released or higher and are not Void.

Namespace:  Aloe.EnterpriseOne.Model.General
Assembly:  Aloe.EnterpriseOne.Model (in Aloe.EnterpriseOne.Model.dll) Version: 20.1.3.5
Syntax
public static IQueryable<TObject> AreReleasedAndNonVoid<TObject>(
	this IQueryable<TObject> expression
)
where TObject : Document

Parameters

expression
Type: System.LinqIQueryableTObject
The expression to filter.

Type Parameters

TObject

Return Value

Type: IQueryableTObject
The filtered expression.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IQueryableTObject. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
Examples
//the following shorthand query:
var query = transaction.Query<SalesOrder>().AreReleasedAndNonVoid();
//is the same as:
var query2 = transaction.Query<SalesOrder>().Where(d => d.State > DocumentState.Released && d.Void == false);
See Also