premik na samo program.cs
This commit is contained in:
@@ -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; }
|
||||
|
||||
Reference in New Issue
Block a user