mirror of
https://github.com/morbalint/kemkas.git
synced 2026-07-17 19:03:46 +00:00
adding hidden basic asp.net core backend (#30)
Base functionality:
DB
email sending
user registration & login
storing new characters and reading them back
Notes:
Functionality is "hidden" with no links pointing to it.
Most pages are scaffolded and not reviewed at all :(
local Dev db setup is pushed to git
NO local email setup :(
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
using Kemkas.Web.Db.Models;
|
||||
using Microsoft.AspNetCore.DataProtection.EntityFrameworkCore;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using Microsoft.AspNetCore.Identity.EntityFrameworkCore;
|
||||
|
||||
namespace Kemkas.Web.Db;
|
||||
|
||||
public class ApplicationDbContext : IdentityDbContext<ApplicationUser, ApplicationRole, int>, IDataProtectionKeyContext
|
||||
{
|
||||
public ApplicationDbContext(DbContextOptions options) : base(options)
|
||||
{
|
||||
}
|
||||
|
||||
public DbSet<DataProtectionKey> DataProtectionKeys { get; set; }
|
||||
|
||||
public DbSet<V1Karakter> Karakterek { get; set; }
|
||||
|
||||
public DbSet<V1KarakterKepzettseg> KarakterKepzettsegek { get; set; }
|
||||
|
||||
public DbSet<V1Szintlepes> Szintlepesek { get; set; }
|
||||
|
||||
public DbSet<V1Felszereles> Felszerelesek { get; set; }
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user