QueryByAttribute

This class is used to retrieve data from an entity based on a simple query where we can check attributes for equality. It only supports the logical AND operator, and we can only combine two conditions using the AND operator:

// Create query using querybyattribute 
QueryByAttribute querybyattribute = new QueryByAttribute("him_vehicle");
querybyattribute.ColumnSet = new ColumnSet("him_name", "him_make");
querybyattribute.Attributes.AddRange("him_name");
querybyattribute.Values.AddRange("Tata");
EntityCollection retrieved = _serviceProxy.RetrieveMultiple(querybyattribute);

In the preceding code, you can see that we are fetching the vehicle entity's data based on its name.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.226.180.161