March 2020
Beginner to intermediate
426 pages
13h 11m
English
This class can be used to create a query for a complex scenario where we have multiple conditions. It supports both the AND and OR logical operators. We can retrieve data from the related entity using the QueryExpression class. For example, if we want to write the preceding QueryByAttribute query, where we used QueryExpression, we could use the following code:
QueryExpression query = new QueryExpression() {EntityName = "him_make",
In the following code, we have defined conditions using Criteria:
ColumnSet = new ColumnSet(new string[] { "him_name" }),Criteria = { Filters = { new FilterExpression { FilterOperator = LogicalOperator.And, Conditions = { new ConditionExpression("him_name", ConditionOperator.Equal, "Tata") }, } ...Read now
Unlock full access