Compare commits
1 Commits
986bc3853c
...
32708e3e26
| Author | SHA1 | Date | |
|---|---|---|---|
| 32708e3e26 |
@@ -2,6 +2,7 @@
|
||||
using Pilz.Cryptography;
|
||||
|
||||
namespace OwnChar.Api.Managers;
|
||||
|
||||
public interface IUserManager
|
||||
{
|
||||
IQueryable<UserAccount>? GetUserAccounts();
|
||||
|
||||
16
OwnChar/Data/DatabaseContext.cs
Normal file
16
OwnChar/Data/DatabaseContext.cs
Normal 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);
|
||||
}
|
||||
}
|
||||
@@ -7,7 +7,15 @@
|
||||
</PropertyGroup>
|
||||
|
||||
<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" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<Folder Include="Data\Model\" />
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
||||
|
||||
Reference in New Issue
Block a user