Started to create authorization portion pt.2
This commit is contained in:
25
BrightGlimmer.Data/AuthContext.cs
Normal file
25
BrightGlimmer.Data/AuthContext.cs
Normal file
@@ -0,0 +1,25 @@
|
||||
using BrightGlimmer.Data.Interfaces;
|
||||
using BrightGlimmer.Domain.Auth;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace BrightGlimmer.Data
|
||||
{
|
||||
public class AuthContext : DbContext, IUnitOfWork
|
||||
{
|
||||
public AuthContext(DbContextOptions<AuthContext> options)
|
||||
: base(options)
|
||||
{
|
||||
}
|
||||
|
||||
// dotnet ef migrations add NAME --project ./BrightGlimmer.Data --startup-project ./BrightGlimmer.Auth --context AuthContext
|
||||
// dotnet ef database update --project ./BrightGlimmer.Data --startup-project ./BrightGlimmer.Auth --context AuthContext
|
||||
protected override void OnModelCreating(ModelBuilder modelBuilder)
|
||||
{
|
||||
}
|
||||
|
||||
public DbSet<User> Users { get; set; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user