Started to create authorization portion pt.2

This commit is contained in:
Giovani
2019-05-05 18:37:22 -05:00
parent 038b89a650
commit 33a6b312b3
34 changed files with 435 additions and 27 deletions

View 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; }
}
}