You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+9-5Lines changed: 9 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -132,9 +132,13 @@ This documentation explains the various query capabilities available in the `Whe
132
132
|`OrderBy(Expression<Func<T, object>> predicate)`| Orders the query result by the specified predicate in ascending order. |
133
133
|`OrderByDescending(Expression<Func<T, object>> predicate)`| Orders the query result by the specified predicate in descending order. |
134
134
|`Count()`| Get the number of items in the collection. |
135
-
|`Execute()`| Executes the MagicQuery and returns the results as an `IEnumerable<T>`. |
135
+
|`ToListAsync()`| Executes the MagicQuery and returns the results as `List<T>`. |
136
+
|`{NOT YET SUPPORTED} AsEnumerable()`| (**FUTURE FEATURE**) Executes the MagicQuery and returns the results as `IEnumerable<T>`. |
137
+
|`{NOT YET SUPPORTED} ToList()`| (**FUTURE FEATURE**) Executes the MagicQuery and returns the results as `List<T>`. |
138
+
|`AsEnumerableAsync()`| Executes the MagicQuery and returns the results as `IEnumerable<T>`. |
136
139
137
-
These MagicQuery methods allow you to build complex queries similar to standard LINQ in C#. Remember to call the `Execute` method at the end of your MagicQuery to execute the query and retrieve the results.
140
+
141
+
These MagicQuery methods allow you to build complex queries similar to standard LINQ in C#. Remember to call the `ToListAsync` or the `AsEnumerableAsync` method at the end of your MagicQuery to execute the query and retrieve the full results.
@@ -298,13 +302,13 @@ foreach (Person person in allPeople)
298
302
299
303
## Querying Records
300
304
301
-
To query records based on specific conditions, use the `Where` method on the `DbManager` instance. You can chain additional LINQ methods, such as `OrderBy`, `Skip`, and `Execute`, to further refine your query. This example retrieves `Person` records that match certain criteria:
305
+
To query records based on specific conditions, use the `Where` method on the `DbManager` instance. You can chain additional LINQ methods, such as `OrderBy`, `Skip`, and `ToListAsync`, to further refine your query. This example retrieves `Person` records that match certain criteria:
In this example, the query returns `Person` records where the `Name` property starts with "c", "l", or "j" (case-insensitive), and the `_Age` property is greater than 35. The results are ordered by the `_Id` property and the first record is skipped.
0 commit comments