本文整理汇总了C#中IRepository.EnrollUnitOfWork方法的典型用法代码示例。如果您正苦于以下问题:C# IRepository.EnrollUnitOfWork方法的具体用法?C# IRepository.EnrollUnitOfWork怎么用?C# IRepository.EnrollUnitOfWork使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类IRepository
的用法示例。
在下文中一共展示了IRepository.EnrollUnitOfWork方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: LineManager
public LineManager(IUnitOfWork unitOfWork, IRepository<Data.Entities.Line> lineRepository)
{
_unitOfWork = unitOfWork;
_lineRepository = lineRepository;
_lineRepository.EnrollUnitOfWork(_unitOfWork);
}
示例2: NewsManager
public NewsManager(IUnitOfWork unitOfWork, IRepository<Data.Entities.News> newsRepository)
{
_unitOfWork = unitOfWork;
_newsRepository = newsRepository;
_newsRepository.EnrollUnitOfWork(_unitOfWork);
}
示例3: DistanceBetweenStopsManager
public DistanceBetweenStopsManager(IUnitOfWork unitOfWork, IRepository<Data.Entities.DistanceBetweenStops> distanceBetweenStopsRepository)
{
_unitOfWork = unitOfWork;
_distanceBetweenStopsRepository = distanceBetweenStopsRepository;
_distanceBetweenStopsRepository.EnrollUnitOfWork(_unitOfWork);
}
示例4: AnswerOptionManager
public AnswerOptionManager(IUnitOfWork unitOfWork, IRepository<Data.Entities.AnswerOption> answerOptionRepository)
{
_unitOfWork = unitOfWork;
_answerOptionRepository = answerOptionRepository;
_answerOptionRepository.EnrollUnitOfWork(_unitOfWork);
}
示例5: EmployeeManager
public EmployeeManager(IUnitOfWork unitOfWork, IRepository<Data.Entities.Employee> employeeRepository)
{
_unitOfWork = unitOfWork;
_employeeRepository = employeeRepository;
_employeeRepository.EnrollUnitOfWork(_unitOfWork);
}
示例6: BusStopOnLineManager
public BusStopOnLineManager(IUnitOfWork unitOfWork, IRepository<Data.Entities.BusStopOnLine> busStopOnLineRepository)
{
_unitOfWork = unitOfWork;
_busStopOnLineRepository = busStopOnLineRepository;
_busStopOnLineRepository.EnrollUnitOfWork(_unitOfWork);
}
示例7: TimetableManager
public TimetableManager(IUnitOfWork unitOfWork, IRepository<Data.Entities.Timetable> timetrableRepository)
{
_unitOfWork = unitOfWork;
_timetrableRepository = timetrableRepository;
_timetrableRepository.EnrollUnitOfWork(_unitOfWork);
}
示例8: EmployeeAuthenticator
public EmployeeAuthenticator()
{
_userAccountRepository = new Repository<UserAccount>();
_unitOfWork = new DataContext();
_userAccountRepository.EnrollUnitOfWork(_unitOfWork);
}
示例9: PhotoManager
public PhotoManager(IUnitOfWork unitOfWork, IRepository<Data.Entities.Photo> photoRepository)
{
_unitOfWork = unitOfWork;
_photoRepository = photoRepository;
_photoRepository.EnrollUnitOfWork(_unitOfWork);
}
示例10: AuthenticationEmployeeManager
public AuthenticationEmployeeManager(IRepository<Data.Entities.UserAccount> employeeRepository, IUnitOfWork unitOfWork)
{
_accountRepository = employeeRepository;
_unitOfWork = unitOfWork;
employeeRepository.EnrollUnitOfWork(_unitOfWork);
}
示例11: PurchaseTicketManager
public PurchaseTicketManager(IUnitOfWork unitOfWork,
IRepository<Data.Entities.PurchaseTicket> purchaseTicketRepository)
{
_purchaseTicketRepository = purchaseTicketRepository;
_unitOfWork = unitOfWork;
_purchaseTicketRepository.EnrollUnitOfWork(_unitOfWork);
}
示例12: TicketTypeManager
public TicketTypeManager(IUnitOfWork unitOfWork,
IRepository<Data.Entities.TicketType> ticketTypeRepository)
{
_ticketTypeRepository = ticketTypeRepository;
_unitOfWork = unitOfWork;
_ticketTypeRepository.EnrollUnitOfWork(_unitOfWork);
}
示例13: UserAccountManager
public UserAccountManager(IUnitOfWork unitOfWork,
IRepository<Data.Entities.UserAccount> userAccountRepository)
{
_unitOfWork = unitOfWork;
_userAccountRepository = userAccountRepository;
_userAccountRepository.EnrollUnitOfWork(_unitOfWork);
}
示例14: BoostAccountManager
public BoostAccountManager(IUnitOfWork unitOfWork,
IRepository<Data.Entities.BoostAccount> boostAccountRepository)
{
_boostAccountRepository = boostAccountRepository;
_unitOfWork = unitOfWork;
_boostAccountRepository.EnrollUnitOfWork(_unitOfWork);
}
示例15: CustomerManager
public CustomerManager(IUnitOfWork unitOfWork,
IRepository<Data.Entities.Customer> customerRepository)
{
_customerRepository = customerRepository;
_unittOfWork = unitOfWork;
_customerRepository.EnrollUnitOfWork(_unittOfWork);
}