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


C# IUnitOfWorkAsync类代码示例

本文整理汇总了C#中IUnitOfWorkAsync的典型用法代码示例。如果您正苦于以下问题:C# IUnitOfWorkAsync类的具体用法?C# IUnitOfWorkAsync怎么用?C# IUnitOfWorkAsync使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


IUnitOfWorkAsync类属于命名空间,在下文中一共展示了IUnitOfWorkAsync类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: CustomerController

 public CustomerController(
     IUnitOfWorkAsync unitOfWorkAsync,
     ICustomerService customerService)
 {
     _unitOfWorkAsync = unitOfWorkAsync;
     _customerService = customerService;
 }
开发者ID:GFoley83,项目名称:URFUnitOfWorkAndRepositoriesFramework,代码行数:7,代码来源:CustomerController.cs

示例2: PersonServiceController

 public PersonServiceController(
     IUnitOfWorkAsync unitOfWorkAsync,
     IPersonBukService personBukService)
 {
     _unitOfWorkAsync = unitOfWorkAsync;
     _personBukService = personBukService;
 }
开发者ID:rufdev,项目名称:tagabukid_project,代码行数:7,代码来源:PersonServiceController.cs

示例3: ManageController

        public ManageController(
            IUnitOfWorkAsync unitOfWorkAsync,
            ISettingService settingService,
            ICategoryService categoryService,
            IItemService itemService,
            IPictureService pictureService,
            IItemPictureService itemPictureService,
            IOrderService orderService,
            ICustomFieldService customFieldService,
            ICustomFieldCategoryService customFieldCategoryService,
            ICustomFieldItemService customFieldItemService,
            ISettingDictionaryService settingDictionaryService,
            IItemStatService itemStatService,
            DataCacheService dataCacheService,
            SqlDbService sqlDbService)
        {
            _settingService = settingService;
            _settingDictionaryService = settingDictionaryService;

            _categoryService = categoryService;
            _itemService = itemService;
            _pictureService = pictureService;
            _itemPictureService = itemPictureService;
            _orderService = orderService;            
            
            _customFieldService = customFieldService;
            _customFieldCategoryService = customFieldCategoryService;
            _customFieldItemService = customFieldItemService;
            _itemStatService = itemStatService;

            _dataCacheService = dataCacheService;
            _sqlDbService = sqlDbService;

            _unitOfWorkAsync = unitOfWorkAsync;
        }
开发者ID:scharada,项目名称:beyourmarket,代码行数:35,代码来源:ManageController.cs

示例4: HomeController

 public HomeController(IQuickLinkService quickLinkService, IUnitOfWorkAsync unitOfWork, IArticleService articleService, IArticleCategoryService articleCategoryService)
 {
     this.quickLinkService = quickLinkService;
     this.articleService = articleService;
     this.unitOfWork = unitOfWork;
     this.articleCategoryService = articleCategoryService;
 }
开发者ID:babak59,项目名称:forbiz,代码行数:7,代码来源:HomeController.cs

示例5: ProjectRoleController

 public ProjectRoleController(
     IUnitOfWorkAsync unitOfWorkAsync,
     IProjectRoleBLL projectRoleService)
 {
     _unitOfWorkAsync = unitOfWorkAsync;
     _projectRoleService = projectRoleService;
 }
开发者ID:NhlaksMaestro,项目名称:RoleBasedRateSystemSolution,代码行数:7,代码来源:ProjectRoleController.cs

示例6: PatientController

 public PatientController(
     IPatientService patientService,
     IUnitOfWorkAsync unitOfWork) : base(unitOfWork)
 {
     _patientService = patientService;
      _logger = LogManager.GetLogger(GetType().Name);
 }
开发者ID:sowenzhang,项目名称:HospitalWeightMonitor,代码行数:7,代码来源:PatientController.cs

示例7: RoleMenusController

 public RoleMenusController(IRoleMenuService roleMenuService, IUnitOfWorkAsync unitOfWork, IMenuItemService menuItemService, ApplicationRoleManager roleManager)
 {
     _roleMenuService = roleMenuService;
     _menuItemService = menuItemService;
     _roleManager = roleManager;
     _unitOfWork = unitOfWork;
 }
开发者ID:huoxudong125,项目名称:MVC5-Scaffolder,代码行数:7,代码来源:RoleMenusController.cs

示例8: WeekMenuController

 public WeekMenuController(IUnitOfWorkAsync unitOfWork)
 {
     _unitOfWork = unitOfWork;
     _db = _unitOfWork.GetContext();
     _weekmenuService = new MenuForWeekService(_unitOfWork.RepositoryAsync<MenuForWeek>());
     _mfdDishPriceService=new MfdDishPriceService(_unitOfWork.RepositoryAsync<MfdDishPriceRelations>());
 }
开发者ID:densem-2013,项目名称:ACSDining,代码行数:7,代码来源:WeekMenuController.cs

示例9: ListingController

        public ListingController(
           IUnitOfWorkAsync unitOfWorkAsync,
           ISettingService settingService,
           ICategoryService categoryService,
           IListingService listingService,
           IPictureService pictureService,
           IListingPictureService ListingPictureservice,
           IOrderService orderService,
           ICustomFieldService customFieldService,
           ICustomFieldCategoryService customFieldCategoryService,
           ICustomFieldListingService customFieldListingService,
           ISettingDictionaryService settingDictionaryService,
           IListingStatService ListingStatservice,
           IEmailTemplateService emailTemplateService,
           DataCacheService dataCacheService,
           SqlDbService sqlDbService)
        {
            _settingService = settingService;
            _settingDictionaryService = settingDictionaryService;

            _categoryService = categoryService;
            _listingService = listingService;
            _pictureService = pictureService;
            _ListingPictureservice = ListingPictureservice;
            _orderService = orderService;
            _customFieldService = customFieldService;
            _customFieldCategoryService = customFieldCategoryService;
            _customFieldListingService = customFieldListingService;
            _ListingStatservice = ListingStatservice;
            _emailTemplateService = emailTemplateService;
            _dataCacheService = dataCacheService;
            _sqlDbService = sqlDbService;

            _unitOfWorkAsync = unitOfWorkAsync;
        }
开发者ID:Speedriser,项目名称:beyourmarket,代码行数:35,代码来源:ListingController.cs

示例10: WorkProcessDetailsController

 public WorkProcessDetailsController(IStationService stationService,IWorkProcessService workProcessService,IWorkProcessDetailService workProcessDetailService, IUnitOfWorkAsync unitOfWork)
 {
     _workProcessDetailService = workProcessDetailService;
     _unitOfWork = unitOfWork;
     _workProcessService = workProcessService;
     _stationService = stationService;
 }
开发者ID:neozhu,项目名称:saferun-IMS,代码行数:7,代码来源:WorkProcessDetailsController.cs

示例11: DepartmentController

 public DepartmentController(
     IUnitOfWorkAsync unitOfWorkAsync,
     IDepartmentBLL departmentService)
 {
     _unitOfWorkAsync = unitOfWorkAsync;
     _departmentService = departmentService;
 }
开发者ID:NhlaksMaestro,项目名称:RoleBasedRateSystemSolution,代码行数:7,代码来源:DepartmentController.cs

示例12: DataController

        /// <summary>
        /// Public constructor to initialize product service instance
        /// </summary>

        public DataController(
            IUnitOfWorkAsync unitOfWorkAsync,
            IControlService ControlService)
        {
            _unitOfWorkAsync = unitOfWorkAsync;
            _ControlService = ControlService;
        }
开发者ID:psws,项目名称:logqso.mvc,代码行数:11,代码来源:DataController.cs

示例13: UserProfileService

 public UserProfileService(IUnitOfWorkAsync unitOfWork, IUserProfileRepository repository,
     IUtilityService utilityService,IUserProfileRepository userProfileRepository)
 {
     _unitOfWork = unitOfWork;
     _repository = repository;
     _utilityService = utilityService;
     _userProfileRepository = userProfileRepository;
 }
开发者ID:surifoll,项目名称:git-test,代码行数:8,代码来源:UserProfileService.cs

示例14: EmployeeOrderApiController

 public EmployeeOrderApiController(IUnitOfWorkAsync unitOfWorkAsync)
 {
     _unitOfWork = unitOfWorkAsync;
     _db = unitOfWorkAsync.GetContext();
     _weekMenuService = new MenuForWeekService(_unitOfWork.RepositoryAsync<MenuForWeek>());
     _orderMenuService = new OrderMenuService(_unitOfWork.RepositoryAsync<WeekOrderMenu>());
     _weekPaimentService = new WeekPaimentService(_unitOfWork.RepositoryAsync<WeekPaiment>());
 }
开发者ID:densem-2013,项目名称:ACSDining,代码行数:8,代码来源:EmployeeOrderApiController.cs

示例15: FileUploadController

 public FileUploadController(IStationService stationservice,IProcessStepService setpservice,ISKUService sKUService, IBOMComponentService iBOMComponentService, IUnitOfWorkAsync unitOfWork)
 {
     _iBOMComponentService = iBOMComponentService;
     _sKUService  = sKUService;
     _unitOfWork = unitOfWork;
     _setpservice = setpservice;
     _stationservice = stationservice;
 }
开发者ID:neozhu,项目名称:saferun-IMS,代码行数:8,代码来源:FileUploadController.cs


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