Cancellazione attività
This commit is contained in:
@@ -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);
|
||||
}
|
||||
Reference in New Issue
Block a user