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