This repository was archived by the owner on Dec 24, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -240,8 +240,9 @@ var usaCustomerOrders = db.Select(db.From<Order>()
240
240
241
241
# API Examples
242
242
243
- OrmLite's SQL Expression support lets you use LINQ-liked querying in all our providers.
244
- To give you a flavour here are some examples with their partial SQL output (using SqlServer dialect):
243
+ OrmLite provides terse and intuitive typed API's for database querying from simple
244
+ lambda expressions to more complex LINQ-Like Typed SQL Expressions which you can use to
245
+ construct more complex queries. To give you a flavour here are some examples:
245
246
246
247
### Querying with SELECT
247
248
@@ -275,9 +276,6 @@ db.Select<Author>(q => q.Name.Contains("Benedict"));
275
276
db .Select <Author >(q => q .Rate == 10 && q .City == " Mexico" );
276
277
```
277
278
278
- Right now the Expression support can satisfy most simple queries with a strong-typed API.
279
- For anything more complex (e.g. queries with table joins) you can still easily fall back to raw SQL queries as seen below.
280
-
281
279
### Convenient common usage data access patterns
282
280
283
281
OrmLite also includes a number of convenient API's providing DRY, typed data access for common queries:
@@ -1305,7 +1303,9 @@ OrmLite's T4 support can be added via NuGet with:
1305
1303
1306
1304
## Typed SqlExpressions with Custom SQL APIs
1307
1305
1308
- The Custom SQL API's allow you to map custom SqlExpressions into different responses:
1306
+ OrmLite's Expression support satisfies the most common RDBMS queries with a strong-typed API.
1307
+ For more complex queries you can easily fall back to raw SQL where the Custom SQL API's
1308
+ let you to map custom SqlExpressions into different responses:
1309
1309
1310
1310
``` csharp
1311
1311
List < Person > results = db .SqlList <Person >(
You can’t perform that action at this time.
0 commit comments