Cancellazione attività

This commit is contained in:
2025-06-26 09:26:50 +02:00
parent 10c1435dba
commit a34e673cd2
38 changed files with 443 additions and 231 deletions

View File

@@ -1,6 +1,7 @@
using SQLite;
using System.Linq.Expressions;
using Template.Shared.Core.Entity;
namespace Template.Maui.Core.Services;
public class LocalDbService
@@ -110,4 +111,7 @@ public class LocalDbService
: _connection.Table<T>().Where(whereCond).ToListAsync();
public List<T> Get<T>(string sql) where T : new() => _connection.QueryAsync<T>(sql).Result;
public async Task Delete<T>(T entity) =>
await _connection.DeleteAsync(entity);
}