46 lines
1.2 KiB
C#
46 lines
1.2 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
using AyCode.Database.DbContexts;
|
|
using AyCode.Database.DbContexts.Users;
|
|
using AyCode.Entities.Users;
|
|
using AyCode.Interfaces.Users;
|
|
using Microsoft.EntityFrameworkCore;
|
|
using TIAM.Entities.TransferDestinations;
|
|
using TIAM.Entities.Users;
|
|
|
|
namespace TIAM.Database.DbContexts
|
|
{
|
|
public class UserDbContext : TiamDbContextBase, IUserDbContextBase<User, UserTokenBase>
|
|
{
|
|
public virtual DbSet<User> Users { get; set; }
|
|
public DbSet<UserTokenBase> UserTokens { 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);
|
|
}
|
|
}
|
|
}
|