File tree Expand file tree Collapse file tree 2 files changed +2
-11
lines changed Expand file tree Collapse file tree 2 files changed +2
-11
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ int operationTimeout
1616 {
1717 await using var dbContext = await client . CreateDbContextAsync ( ) ;
1818 await dbContext . Database . EnsureCreatedAsync ( ) ;
19- await dbContext . Database . MigrateAsync ( ) ;
19+ await dbContext . Database . ExecuteSqlRawAsync ( SloTable . Options ) ;
2020 }
2121
2222 protected override async Task < ( int , StatusCode ) > Save (
@@ -47,6 +47,6 @@ protected override async Task<int> SelectCount(string sql)
4747 {
4848 await using var dbContext = await client . CreateDbContextAsync ( ) ;
4949
50- return await dbContext . Database . SqlQuery < int > ( $ "SELECT COUNT(*) FROM { SloTable . Name } ") . SingleAsync ( ) ;
50+ return await dbContext . Database . SqlQueryRaw < int > ( $ "SELECT COUNT(*) FROM { SloTable . Name } ") . SingleAsync ( ) ;
5151 }
5252}
You can’t perform that action at this time.
0 commit comments