23 lines
667 B
C#
23 lines
667 B
C#
using CloudGaming.AppConfigModel;
|
|
|
|
using AppConfig = CloudGaming.Code.DataBaseModel.AppConfig;
|
|
|
|
|
|
namespace CloudGaming.Repository.Game;
|
|
|
|
/// <summary>
|
|
/// 后台管理系统数据库上下文
|
|
/// </summary>
|
|
[DbContextConfig($"Repository.*.Entities.Ext.*")]
|
|
public class ExtDbContext : BaseDbContext
|
|
{
|
|
/// <summary>
|
|
///
|
|
/// </summary>
|
|
public override IUnitOfWork UnitOfWork { get; }
|
|
public ExtDbContext(IConfiguration configuration, IWebHostEnvironment webHostEnvironment, AppConfig appConfig) : base(configuration, webHostEnvironment, appConfig, AppDataBaseType.Ext)
|
|
{
|
|
UnitOfWork = new UnitOfWorkImpl<ExtDbContext>(this);
|
|
}
|
|
}
|
|
|