DatasetModel QueryStyle property
The QueryStyle property on the Consultingwerk.OERA.IDatasetModel interface and related classes (like Consultingwerk.OERA.DatasetModelPerformer) controls how query expressions are added to the Consultingwerk.OERA.IFetchDataRequest implementations used to retrieve data by a dataset model. This property is used in the dataset model’s RetrieveData methods that have a parameter defined as Consultingwerk.IQueryExpression . RetrieveData methods that do not have such a parameter are not affected by this change.
The QueryStyle property is publicly writeable. The default value is Consultingwerk.OERA.DatasetModel.QueryStyleEnum:QueryString .
QueryStyle property value | Behaviour in RetrieveData() |
---|---|
QueryString | The query expression object’s expression is added as a character value to an ABL FOR EACH statement. If a sort string is passed in, it is added to the FOR EACH statement. The resulting string is added as the FetchDataRequest object’s Queries property. This is the default behaviour. |
QueryExpressionWithSort |