44 lines
1.0 KiB
C#
44 lines
1.0 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
using AyCode.Database.DbContexts;
|
|
using Microsoft.EntityFrameworkCore;
|
|
using TIAM.Entities.Permissions;
|
|
using TIAM.Entities.Users;
|
|
|
|
namespace TIAM.Database.DbContexts
|
|
{
|
|
public class UserDbContext : TiamDbContextBase
|
|
{
|
|
public virtual DbSet<User> Users { get; set; }
|
|
|
|
public UserDbContext() //: this(string.Empty)
|
|
{
|
|
|
|
}
|
|
|
|
public UserDbContext(DbContextOptions<UserDbContext> options) //: this(string.Empty)
|
|
{
|
|
|
|
}
|
|
|
|
public UserDbContext(string name) : base(name)
|
|
{
|
|
}
|
|
|
|
public UserDbContext(DbContextOptions<DbContext> options, string name) : base(options, name)
|
|
{
|
|
}
|
|
|
|
protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)
|
|
{
|
|
optionsBuilder.EnableDetailedErrors(true);
|
|
base.OnConfiguring(optionsBuilder);
|
|
}
|
|
|
|
|
|
}
|
|
}
|