premik na samo program.cs

This commit is contained in:
2026-06-22 16:19:22 +02:00
parent bcde4178df
commit b4f70ad250
7 changed files with 2970 additions and 365 deletions

View File

@@ -11,16 +11,19 @@ using Microsoft.EntityFrameworkCore;
using ProjecThing.Models.CodeTable;
using ProjecThing.Models.Invoice;
using ProjecThing.Models.Project;
using Microsoft.AspNetCore.DataProtection.EntityFrameworkCore;
namespace ProjecThing.Data
{
public class ApplicationDbContext : IdentityDbContext<IdentityApplicationUser, IdentityApplicationRole, int>
public class ApplicationDbContext : IdentityDbContext<IdentityApplicationUser, IdentityApplicationRole, int>, IDataProtectionKeyContext
{
public ApplicationDbContext(DbContextOptions<ApplicationDbContext> options) : base(options)
{
}
public DbSet<DataProtectionKey> DataProtectionKeys { get; set; }
public DbSet<CodeTableEmployee> CodeTableEmployees { get; set; }
public DbSet<CodeTableCountry> CodeTableCountries { get; set; }
public DbSet<CodeTableCompany> CodeTableCompanies { get; set; }