18 lines
599 B
C#
18 lines
599 B
C#
using CloudGaming.AppConfigModel;
|
|
|
|
using AppConfig = CloudGaming.Code.DataBaseModel.AppConfig;
|
|
|
|
namespace CloudGaming.Repository.Game;
|
|
[DbContextConfig($"Repository.*.Entities.User.*")]
|
|
public class UserDbContext : BaseDbContext
|
|
{
|
|
/// <summary>
|
|
///
|
|
/// </summary>
|
|
public override IUnitOfWork UnitOfWork { get; }
|
|
public UserDbContext(IConfiguration configuration, IWebHostEnvironment webHostEnvironment, AppConfig appConfig) : base(configuration, webHostEnvironment, appConfig, AppDataBaseType.User)
|
|
{
|
|
UnitOfWork = new UnitOfWorkImpl<UserDbContext>(this);
|
|
}
|
|
}
|