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
{{ message }}
This repository was archived by the owner on Dec 24, 2022. It is now read-only.
Copy file name to clipboardExpand all lines: README.md
+26-19Lines changed: 26 additions & 19 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -322,76 +322,83 @@ The API is minimal, providing basic shortcuts for the primitive SQL statements:
322
322
323
323
### Notes
324
324
325
-
Extension methods hang off the implementation agnostic ADO.NET `IDbConnection`.
325
+
OrmLite Extension methods hang off ADO.NET's`IDbConnection`.
326
326
327
327
`CreateTable<T>` and `DropTable<T>` create and drop tables based on a classes type definition (only public properties used).
328
328
329
-
By default Selection methods use parameterized SQL whilst any selection methods ending with **Fmt** allow you to construct Sql using C# `string.Format()` syntax.
329
+
By default the Select API's use parameterized SQL whilst any selection methods ending with **Fmt** allow you to construct Sql using C# `string.Format()` syntax.
330
330
331
331
If your SQL doesn't start with a **SELECT** statement, it is assumed a WHERE clause is being provided, e.g:
332
332
333
333
```csharp
334
-
vartracks=db.SelectFmt<Track>("Artist = {0} AND Album = {1}", "Nirvana", "Heart Shaped Box");
334
+
vartracks=db.SelectFmt<Track>("Artist = {0} AND Album = {1}",
335
+
"Nirvana",
336
+
"Heart Shaped Box");
335
337
```
336
338
337
-
The same results could also be fetched with:
339
+
Which is equivalent to:
338
340
339
341
```csharp
340
-
vartracks=db.SelectFmt<Track>("select * from track WHERE Artist={0} AND Album={1}", "Nirvana", "Heart Shaped Box");
342
+
vartracks=db.SelectFmt<Track>("SELECT * FROM track WHERE Artist={0} AND Album={1}",
0 commit comments