Elwig: Use ExecuteSql/FromSql instead of ExecuteSqlRaw/FromSqlRaw where possible
Test / Run tests (push) Successful in 1m42s
Test / Run tests (push) Successful in 1m42s
This commit is contained in:
1 parent
d1f67dc57d
commit
0675c45617
6 files changed
+6
-6
No files matched your search
@@ -49,7 +49,7 @@ namespace Elwig.Models.Dtos {
|
||||
}
|
||||
|
||||
private static async Task<IEnumerable<PaymentVariantSummaryRow>> FromDbSet(DbSet<PaymentVariantSummaryRow> table, int year, int avnr) {
|
||||
return await table.FromSqlRaw($"""
|
||||
return await table.FromSql($"""
|
||||
SELECT v.type AS type,
|
||||
v.name AS variety,
|
||||
a.name AS attribute,
|
||||
|
||||
Reference in new issue
Block a user