LINQ queries demonstrate how to operate and query the Service Now objects wrapped in an Entity Framework data model. Listed below are some examples of LINQ queries supported by the Entity framework. In the following example, it is used Incident.cs file to map the Incident datatable.
ContainsRetrieve all entities that contain "Server" in the Description column. |
| ||||
Order BySort data by Category in ascending order. |
| ||||
CountCount all entities that match a given criterion. |
| ||||
JoinsCross-join Incident and AlmAsset tables. |
| ||||
Group By
Group records from the Incidents table based on the Category property. |
|