Förberett för övergång till entity framework

This commit is contained in:
2025-09-01 11:14:38 +02:00
parent eb9ea77dd9
commit b04fc7e06e
13 changed files with 191 additions and 73 deletions

View File

@ -1,5 +1,14 @@
namespace Common.Library;
//using GreadyPoang.DataLayer;
namespace Common.Library;
public class ViewModelBase : CommonBase
{
//private readonly LocalDbService _dbService;
//public ViewModelBase(LocalDbService dbService)
//{
// _dbService = dbService;
//}
}

View File

@ -6,4 +6,5 @@
<Nullable>enable</Nullable>
</PropertyGroup>
</Project>

View File

@ -4,7 +4,7 @@ namespace Common.Library;
public interface IRepository<TEntity>
{
ObservableCollection<TEntity> Get();
Task<ObservableCollection<TEntity>> Get();
TEntity Get(int id);
bool Save(TEntity entity);
}