public void OneTimeSetup() { _repositoryHelper = new RepositoryHelper(); _repositoryHelper.FillTypes.Add(EntityType.CinemaHall); _repositoryHelper.FillTypes.Add(EntityType.Row); _repositoryHelper.FillTypes.Add(EntityType.RowCategory); _repositoryHelper.FillTypes.Add(EntityType.Seat); _repositoryInfrastructure = _repositoryHelper.RepositoryFactory.CreateRepositoryInfrastructure(); }
/// <summary> /// 构造获取上下文工厂 /// </summary> public SqlQueryAbstract(IRepositoryInfrastructure _infrastructure, RepositoryOptions _unitOfWorkOptions) { infrastructure = _infrastructure; unitOfWorkOptions = _unitOfWorkOptions; }
public RepositoryQueryAbstract(IRepositoryInfrastructure _infrastructure) { infrastructure = _infrastructure; }