some work (need to thing about client and server data model as next step)

This commit is contained in:
2024-07-18 16:42:46 +02:00
parent 986bc3853c
commit 32708e3e26
3 changed files with 25 additions and 0 deletions

View File

@@ -2,6 +2,7 @@
using Pilz.Cryptography; using Pilz.Cryptography;
namespace OwnChar.Api.Managers; namespace OwnChar.Api.Managers;
public interface IUserManager public interface IUserManager
{ {
IQueryable<UserAccount>? GetUserAccounts(); IQueryable<UserAccount>? GetUserAccounts();

View File

@@ -0,0 +1,16 @@
using Microsoft.EntityFrameworkCore;
namespace OwnChar.Data;
public class DatabaseContext(string? dbHost, string? dbUser, string? dbPassword) : DbContext
{
protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)
{
base.OnConfiguring(optionsBuilder);
}
protected override void OnModelCreating(ModelBuilder modelBuilder)
{
base.OnModelCreating(modelBuilder);
}
}

View File

@@ -7,7 +7,15 @@
</PropertyGroup> </PropertyGroup>
<ItemGroup> <ItemGroup>
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="8.0.7" />
<PackageReference Include="Microsoft.EntityFrameworkCore.Proxies" Version="8.0.7" />
<PackageReference Include="Microsoft.EntityFrameworkCore.Sqlite" Version="8.0.7" />
<PackageReference Include="Microsoft.EntityFrameworkCore.SqlServer" Version="8.0.7" />
<PackageReference Include="Pilz.Cryptography" Version="2.0.1" /> <PackageReference Include="Pilz.Cryptography" Version="2.0.1" />
</ItemGroup> </ItemGroup>
<ItemGroup>
<Folder Include="Data\Model\" />
</ItemGroup>
</Project> </Project>