DocumentsRepositoryStaticArePlannedAndNonVoidTObject Method |
Returns a filter which returns only documents whose state is Planned 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
Syntaxpublic static IQueryable<TObject> ArePlannedAndNonVoid<TObject>(
this IQueryable<TObject> expression
)
where TObject : Document
<ExtensionAttribute>
Public Shared Function ArePlannedAndNonVoid(Of TObject As Document) (
expression As IQueryable(Of TObject)
) As IQueryable(Of TObject)
public:
[ExtensionAttribute]
generic<typename TObject>
where TObject : Document
static IQueryable<TObject>^ ArePlannedAndNonVoid(
IQueryable<TObject>^ expression
)
[<ExtensionAttribute>]
static member ArePlannedAndNonVoid :
expression : IQueryable<'TObject> -> IQueryable<'TObject> when 'TObject : Document
Parameters
- expression
- Type: System.LinqIQueryableTObject
The expression to filter.
Type Parameters
- TObject
Return Value
Type:
IQueryableTObjectThe 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
var query = transaction.Query<SalesOrder>().ArePlannedAndNonVoid();
var query2 = transaction.Query<SalesOrder>().Where(d => d.State > DocumentState.Planned && d.Void == false);
See Also