24 lines
708 B
C#
24 lines
708 B
C#
using CloudGaming.Code.DataBaseModel;
|
|
|
|
using HZY.Framework.Repository.EntityFramework;
|
|
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
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);
|
|
}
|
|
}
|