本文整理汇总了C#中IUnitOfWorkAsync类的典型用法代码示例。如果您正苦于以下问题:C# IUnitOfWorkAsync类的具体用法?C# IUnitOfWorkAsync怎么用?C# IUnitOfWorkAsync使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
IUnitOfWorkAsync类属于命名空间,在下文中一共展示了IUnitOfWorkAsync类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: CustomerController
public CustomerController(
IUnitOfWorkAsync unitOfWorkAsync,
ICustomerService customerService)
{
_unitOfWorkAsync = unitOfWorkAsync;
_customerService = customerService;
}
示例2: PersonServiceController
public PersonServiceController(
IUnitOfWorkAsync unitOfWorkAsync,
IPersonBukService personBukService)
{
_unitOfWorkAsync = unitOfWorkAsync;
_personBukService = personBukService;
}
示例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;
}
示例4: HomeController
public HomeController(IQuickLinkService quickLinkService, IUnitOfWorkAsync unitOfWork, IArticleService articleService, IArticleCategoryService articleCategoryService)
{
this.quickLinkService = quickLinkService;
this.articleService = articleService;
this.unitOfWork = unitOfWork;
this.articleCategoryService = articleCategoryService;
}
示例5: ProjectRoleController
public ProjectRoleController(
IUnitOfWorkAsync unitOfWorkAsync,
IProjectRoleBLL projectRoleService)
{
_unitOfWorkAsync = unitOfWorkAsync;
_projectRoleService = projectRoleService;
}
示例6: PatientController
public PatientController(
IPatientService patientService,
IUnitOfWorkAsync unitOfWork) : base(unitOfWork)
{
_patientService = patientService;
_logger = LogManager.GetLogger(GetType().Name);
}
示例7: RoleMenusController
public RoleMenusController(IRoleMenuService roleMenuService, IUnitOfWorkAsync unitOfWork, IMenuItemService menuItemService, ApplicationRoleManager roleManager)
{
_roleMenuService = roleMenuService;
_menuItemService = menuItemService;
_roleManager = roleManager;
_unitOfWork = unitOfWork;
}
示例8: WeekMenuController
public WeekMenuController(IUnitOfWorkAsync unitOfWork)
{
_unitOfWork = unitOfWork;
_db = _unitOfWork.GetContext();
_weekmenuService = new MenuForWeekService(_unitOfWork.RepositoryAsync<MenuForWeek>());
_mfdDishPriceService=new MfdDishPriceService(_unitOfWork.RepositoryAsync<MfdDishPriceRelations>());
}
示例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;
}
示例10: WorkProcessDetailsController
public WorkProcessDetailsController(IStationService stationService,IWorkProcessService workProcessService,IWorkProcessDetailService workProcessDetailService, IUnitOfWorkAsync unitOfWork)
{
_workProcessDetailService = workProcessDetailService;
_unitOfWork = unitOfWork;
_workProcessService = workProcessService;
_stationService = stationService;
}
示例11: DepartmentController
public DepartmentController(
IUnitOfWorkAsync unitOfWorkAsync,
IDepartmentBLL departmentService)
{
_unitOfWorkAsync = unitOfWorkAsync;
_departmentService = departmentService;
}
示例12: DataController
/// <summary>
/// Public constructor to initialize product service instance
/// </summary>
public DataController(
IUnitOfWorkAsync unitOfWorkAsync,
IControlService ControlService)
{
_unitOfWorkAsync = unitOfWorkAsync;
_ControlService = ControlService;
}
示例13: UserProfileService
public UserProfileService(IUnitOfWorkAsync unitOfWork, IUserProfileRepository repository,
IUtilityService utilityService,IUserProfileRepository userProfileRepository)
{
_unitOfWork = unitOfWork;
_repository = repository;
_utilityService = utilityService;
_userProfileRepository = userProfileRepository;
}
示例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>());
}
示例15: FileUploadController
public FileUploadController(IStationService stationservice,IProcessStepService setpservice,ISKUService sKUService, IBOMComponentService iBOMComponentService, IUnitOfWorkAsync unitOfWork)
{
_iBOMComponentService = iBOMComponentService;
_sKUService = sKUService;
_unitOfWork = unitOfWork;
_setpservice = setpservice;
_stationservice = stationservice;
}