Skip to content

Commit 2f3c1b6

Browse files
committed
fix code example
1 parent dced651 commit 2f3c1b6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

MyApp/_posts/2025-10-15_ormlite-new-configuration.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -460,9 +460,9 @@ The `DateFormat` accepts [SQLite strftime() function](https://www.w3resource.com
460460
time modifiers in its format string whilst the `Char` accepts a character code, e.g:
461461

462462
```csharp
463-
var q = db.From<CompletedJob>();
464-
var createdDate = q.Column<CompletedJob>(c => c.CreatedDate);
465-
var months = db.SqlColumn<string>(q
463+
var q = db.From<MyTable>();
464+
var createdDate = q.Column<MyTable>(c => c.CreatedDate);
465+
var months = db.SqlList<(string month, string log)>(q
466466
.Select(x => new {
467467
Month = q.sql.DateFormat(createdDate, "%Y-%m"),
468468
Log = q.sql.Concat(new[]{ "'Prefix'", q.sql.Char(10), createdDate })

0 commit comments

Comments
 (0)