| 11544 | } |
| 11545 | |
| 11546 | function fromJSON(eq, json) { |
| 11547 | __toJson(json, { |
| 11548 | "resourceName,from": null, |
| 11549 | // just the name comes back and will be resolved later |
| 11550 | "resultEntityType,toType": null, |
| 11551 | "wherePredicate,where": function (v) { |
| 11552 | return v ? new Predicate(v) : undefined; |
| 11553 | }, |
| 11554 | "orderByClause,orderBy": function (v) { |
| 11555 | return v ? new OrderByClause(v) : undefined; |
| 11556 | }, |
| 11557 | "selectClause,select": function (v) { |
| 11558 | return v ? new SelectClause(v) : undefined; |
| 11559 | }, |
| 11560 | "expandClause,expand": function (v) { |
| 11561 | return v ? new ExpandClause(v) : undefined; |
| 11562 | }, |
| 11563 | "skipCount,skip": null, |
| 11564 | "takeCount,take": null, |
| 11565 | parameters: function (v) { |
| 11566 | return __isEmpty(v) ? undefined : v; |
| 11567 | }, |
| 11568 | "inlineCountEnabled,inlineCount": false, |
| 11569 | "noTrackingEnabled,noTracking": false, |
| 11570 | queryOptions: function (v) { |
| 11571 | return v ? QueryOptions.fromJSON(v) : undefined; |
| 11572 | } |
| 11573 | }, eq); |
| 11574 | return eq; |
| 11575 | } |
| 11576 | |
| 11577 | /** |
| 11578 | Static method tht creates an EntityQuery that will allow 'requerying' an entity or a collection of entities by primary key. This can be useful |