当前位置: 首页>>代码示例>>C#>>正文


C# IRepository.EnrollUnitOfWork方法代码示例

本文整理汇总了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);
        }
开发者ID:PatrykOlejniczak,项目名称:WPK.TransportSystem,代码行数:7,代码来源:LineManager.cs

示例2: NewsManager

        public NewsManager(IUnitOfWork unitOfWork, IRepository<Data.Entities.News> newsRepository)
        {
            _unitOfWork = unitOfWork;
            _newsRepository = newsRepository;

            _newsRepository.EnrollUnitOfWork(_unitOfWork);
        }
开发者ID:PatrykOlejniczak,项目名称:WPK.TransportSystem,代码行数:7,代码来源:NewsManager.cs

示例3: DistanceBetweenStopsManager

        public DistanceBetweenStopsManager(IUnitOfWork unitOfWork, IRepository<Data.Entities.DistanceBetweenStops> distanceBetweenStopsRepository)
        {
            _unitOfWork = unitOfWork;
            _distanceBetweenStopsRepository = distanceBetweenStopsRepository;

            _distanceBetweenStopsRepository.EnrollUnitOfWork(_unitOfWork);
        }
开发者ID:PatrykOlejniczak,项目名称:WPK.TransportSystem,代码行数:7,代码来源:DistanceBetweenStopsManager.cs

示例4: AnswerOptionManager

        public AnswerOptionManager(IUnitOfWork unitOfWork, IRepository<Data.Entities.AnswerOption> answerOptionRepository)
        {
            _unitOfWork = unitOfWork;
            _answerOptionRepository = answerOptionRepository;

            _answerOptionRepository.EnrollUnitOfWork(_unitOfWork);
        }
开发者ID:PatrykOlejniczak,项目名称:WPK.TransportSystem,代码行数:7,代码来源:AnswerOptionManager.cs

示例5: EmployeeManager

        public EmployeeManager(IUnitOfWork unitOfWork, IRepository<Data.Entities.Employee> employeeRepository)
        {
            _unitOfWork = unitOfWork;
            _employeeRepository = employeeRepository;

            _employeeRepository.EnrollUnitOfWork(_unitOfWork);
        }
开发者ID:PatrykOlejniczak,项目名称:WPK.TransportSystem,代码行数:7,代码来源:EmployeeManager.cs

示例6: BusStopOnLineManager

        public BusStopOnLineManager(IUnitOfWork unitOfWork, IRepository<Data.Entities.BusStopOnLine> busStopOnLineRepository)
        {
            _unitOfWork = unitOfWork;
            _busStopOnLineRepository = busStopOnLineRepository;

            _busStopOnLineRepository.EnrollUnitOfWork(_unitOfWork);
        }
开发者ID:PatrykOlejniczak,项目名称:WPK.TransportSystem,代码行数:7,代码来源:BusStopOnLineManager.cs

示例7: TimetableManager

        public TimetableManager(IUnitOfWork unitOfWork, IRepository<Data.Entities.Timetable> timetrableRepository)
        {
            _unitOfWork = unitOfWork;
            _timetrableRepository = timetrableRepository;

            _timetrableRepository.EnrollUnitOfWork(_unitOfWork);
        }
开发者ID:PatrykOlejniczak,项目名称:WPK.TransportSystem,代码行数:7,代码来源:TimetableManager.cs

示例8: EmployeeAuthenticator

        public EmployeeAuthenticator()
        {
            _userAccountRepository = new Repository<UserAccount>();
            _unitOfWork = new DataContext();

            _userAccountRepository.EnrollUnitOfWork(_unitOfWork);
        }
开发者ID:PatrykOlejniczak,项目名称:WPK.TransportSystem,代码行数:7,代码来源:EmployeeAuthenticator.cs

示例9: PhotoManager

        public PhotoManager(IUnitOfWork unitOfWork, IRepository<Data.Entities.Photo> photoRepository)
        {
            _unitOfWork = unitOfWork;
            _photoRepository = photoRepository;

            _photoRepository.EnrollUnitOfWork(_unitOfWork);
        } 
开发者ID:PatrykOlejniczak,项目名称:WPK.TransportSystem,代码行数:7,代码来源:PhotoManager.cs

示例10: AuthenticationEmployeeManager

        public AuthenticationEmployeeManager(IRepository<Data.Entities.UserAccount> employeeRepository, IUnitOfWork unitOfWork)
        {
            _accountRepository = employeeRepository;
            _unitOfWork = unitOfWork;

            employeeRepository.EnrollUnitOfWork(_unitOfWork);
        }
开发者ID:PatrykOlejniczak,项目名称:WPK.TransportSystem,代码行数:7,代码来源:AuthenticationEmployeeManager.cs

示例11: PurchaseTicketManager

        public PurchaseTicketManager(IUnitOfWork unitOfWork,
            IRepository<Data.Entities.PurchaseTicket> purchaseTicketRepository)
        {
            _purchaseTicketRepository = purchaseTicketRepository;
            _unitOfWork = unitOfWork;

            _purchaseTicketRepository.EnrollUnitOfWork(_unitOfWork);
        }
开发者ID:PatrykOlejniczak,项目名称:WPK.TransportSystem,代码行数:8,代码来源:PurchaseTicketManager.cs

示例12: TicketTypeManager

        public TicketTypeManager(IUnitOfWork unitOfWork,
            IRepository<Data.Entities.TicketType> ticketTypeRepository)
        {
            _ticketTypeRepository = ticketTypeRepository;
            _unitOfWork = unitOfWork;

            _ticketTypeRepository.EnrollUnitOfWork(_unitOfWork);
        }
开发者ID:PatrykOlejniczak,项目名称:WPK.TransportSystem,代码行数:8,代码来源:TicketTypeManager.cs

示例13: UserAccountManager

        public UserAccountManager(IUnitOfWork unitOfWork, 
            IRepository<Data.Entities.UserAccount> userAccountRepository)
        {
            _unitOfWork = unitOfWork;
            _userAccountRepository = userAccountRepository;

            _userAccountRepository.EnrollUnitOfWork(_unitOfWork);
        }
开发者ID:PatrykOlejniczak,项目名称:WPK.TransportSystem,代码行数:8,代码来源:UserAccountManager.cs

示例14: BoostAccountManager

        public BoostAccountManager(IUnitOfWork unitOfWork, 
            IRepository<Data.Entities.BoostAccount> boostAccountRepository)
        {
            _boostAccountRepository = boostAccountRepository;
            _unitOfWork = unitOfWork;

           _boostAccountRepository.EnrollUnitOfWork(_unitOfWork);
        }
开发者ID:PatrykOlejniczak,项目名称:WPK.TransportSystem,代码行数:8,代码来源:BoostAccountManager.cs

示例15: CustomerManager

        public CustomerManager(IUnitOfWork unitOfWork,
            IRepository<Data.Entities.Customer> customerRepository)
        {
            _customerRepository = customerRepository;
            _unittOfWork = unitOfWork;

            _customerRepository.EnrollUnitOfWork(_unittOfWork);
        }
开发者ID:PatrykOlejniczak,项目名称:WPK.TransportSystem,代码行数:8,代码来源:CustomerManager.cs


注:本文中的IRepository.EnrollUnitOfWork方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。