• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

C# iPow类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



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

示例1: RolePermissionController

 public RolePermissionController(iPow.Infrastructure.Crosscutting.NetFramework.IWorkContext work,
     iPow.Infrastructure.Crosscutting.Authorize.IRoleService role,
     iPow.Infrastructure.Crosscutting.Authorize.IMvcActionService mvcAction,
     iPow.Infrastructure.Crosscutting.Authorize.IMvcControllerClassService mvcControllerClass,
     iPow.Infrastructure.Crosscutting.Authorize.IMvcControllerService mvcController,
     iPow.Infrastructure.Crosscutting.Authorize.IMvcRolePermissionService rolePermission)
 {
     if (role == null)
     {
         throw new ArgumentNullException("roleService is null");
     }
     if (mvcAction == null)
     {
         throw new ArgumentNullException("actionService is null");
     }
     if (mvcControllerClass == null)
     {
         throw new ArgumentNullException("actionService is null");
     }
     if (mvcController == null)
     {
         throw new ArgumentNullException("mvcControllerService is null");
     }
     if (rolePermission == null)
     {
         throw new ArgumentNullException("rolePermissionService is null");
     }
     roleService = role;
     mvcActionService = mvcAction;
     mvcControllerClassService = mvcControllerClass;
     mvcControllerService = mvcController;
     mvcRolePermissionService = rolePermission;
 }
开发者ID:JPomichael,项目名称:IPOW,代码行数:33,代码来源:RolePermissionController.cs


示例2: TourDetailController

 public TourDetailController(iPow.Infrastructure.Crosscutting.NetFramework.IWorkContext work,
     iPow.Domain.Repository.ITourClassRepository tourClass,
     iPow.Domain.Repository.ITourPlanDetailRepository tourPlanDetail,
     iPow.Domain.Repository.ITourPlanRepository tourPlan,
     iPow.Domain.Repository.ISightInfoRepository sightInfo,
     iPow.Domain.Repository.IHotelPropertyInfoRepository hotelPropertyInfo)
     : base(work)
 {
     if (tourClass == null)
     {
         throw new ArgumentNullException("tourClassRepository is null");
     }
     if (tourPlanDetail == null)
     {
         throw new ArgumentNullException("tourPlanDetailRepository is null");
     }
     if (tourPlan == null)
     {
         throw new ArgumentNullException("tourPlanRepository is null");
     }
     if (sightInfo == null)
     {
         throw new ArgumentNullException("sightInfoRepository is null");
     }
     if (hotelPropertyInfo == null)
     {
         throw new ArgumentNullException("hotelPropertyInfoRepository is null");
     }
     tourClassRepository = tourClass;
     tourPlanDetailRepository = tourPlanDetail;
     tourPlanRepository = tourPlan;
     sightInfoRepository = sightInfo;
     hotelPropertyInfoRepository = hotelPropertyInfo;
 }
开发者ID:JPomichael,项目名称:IPOW,代码行数:34,代码来源:TourDetailController.cs


示例3: HotelTrafficService

 /// <summary>
 /// Initializes a new instance of the <see cref="HotelTrafficService"/> class.
 /// </summary>
 /// <param name="hiService">The hi service.</param>
 /// <param name="ciService">The ci service.</param>
 public HotelTrafficService(IHotelInfoService hiService,
     ICityService ciService,
     iPow.Domain.Repository.ICityAreaCodeRepository cityAreaCode,
     IHotelAroundHotelService hahService,
     iPow.Domain.Repository.ISightInfoRepository sightInfo)
 {
     if (hiService == null)
     {
         throw new ArgumentNullException("ihotelinfoservice is null");
     }
     if (ciService == null)
     {
         throw new ArgumentNullException("cityservice is null");
     }
     if (cityAreaCode == null)
     {
         throw new ArgumentNullException("cityareacoderepository is null");
     }
     if (hahService == null)
     {
         throw new ArgumentNullException("hotelaroundhotelservice is null");
     }
     if (sightInfo == null)
     {
         throw new ArgumentNullException("sightinforepository is null");
     }
     hotelInfoService = hiService;
     cityService = ciService;
     cityAreaCodeRepository = cityAreaCode;
     hotelAroundHotelService = hahService;
     sightInfoRepository = sightInfo;
     Take = 10;
 }
开发者ID:JPomichael,项目名称:IPOW,代码行数:38,代码来源:HotelTrafficService.cs


示例4: PicInfoService

 /// <summary>
 /// Initializes a new instance of the <see cref="PicInfoService"/> class.
 /// </summary>
 /// <param name="picInfo">The pic info.</param>
 /// <param name="picComm">The pic comm.</param>
 /// <param name="picClass">The pic class.</param>
 public PicInfoService(iPow.Domain.Repository.IPicInfoRepository picInfo,
     iPow.Domain.Repository.IPicCommRepository picComm,
     iPow.Domain.Repository.IPicClassRepository picClass,
     iPow.Application.jq.Service.ISightInfoService sis)
 {
     if (picInfo == null)
     {
         throw new ArgumentNullException("picinforepository is null");
     }
     if (picComm == null)
     {
         throw new ArgumentNullException("piccommrepository is null");
     }
     if (picClass == null)
     {
         throw new ArgumentNullException("picclassrepository is null");
     }
     if (sis == null)
     {
         throw new ArgumentNullException("sightinfoservice is null");
     }
     picInfoRepository = picInfo;
     picCommRepository = picComm;
     picClassRepository = picClass;
     sightInfoService = sis;
 }
开发者ID:JPomichael,项目名称:IPOW,代码行数:32,代码来源:PicInfoService.cs


示例5: ArticleService

 /// <summary>
 /// Initializes a new instance of the <see cref="ArticleService"/> class.
 /// </summary>
 /// <param name="articleInfo">The article info.</param>
 public ArticleService(iPow.Domain.Repository.IArticleInfoRepository articleInfo,
      iPow.Domain.Repository.ISightInfoRepository sightInfo,
     iPow.Domain.Repository.IArticleCommRepository articleComm,
     iPow.Domain.Repository.IArticleClassRepository articleClass,
     iPow.Application.jq.Service.ISightInfoService sis
     )
 {
     if (articleInfo == null)
     {
         throw new ArgumentNullException("articleInfoRepository is null");
     }
     if (sightInfo == null)
     {
         throw new ArgumentNullException("sightinforepository is null");
     }
     if (articleComm == null)
     {
         throw new ArgumentNullException("articleclassrepository is null");
     }
     if (articleClass == null)
     {
         throw new ArgumentNullException("articlecommrepository is null");
     }
     if (sis == null)
     {
         throw new ArgumentNullException("sightinfoservice is null");
     }
     articleInfoRepository = articleInfo;
     sightInfoRepository = sightInfo;
     articleCommRepository = articleComm;
     articleClassRepository = articleClass;
     sightInfoService = sis;
 }
开发者ID:JPomichael,项目名称:IPOW,代码行数:37,代码来源:ArticleService.cs


示例6: LinksAndTopCountService

 /// <summary>
 /// Initializes a new instance of the <see cref="LinksAndTopCountService"/> class.
 /// </summary>
 public LinksAndTopCountService(iPow.Domain.Repository.ILinkInfoRepository linkInfo,
       iPow.Domain.Repository.ISightInfoRepository sightInfo,
       iPow.Domain.Repository.ITourPlanRepository tourPlan,
       iPow.Domain.Repository.IHotelPropertyInfoRepository hotelPropertyInfo
     )
 {
     if (linkInfo == null)
     {
         throw new ArgumentNullException("linkInfoRepository is null");
     }
     if (sightInfo == null)
     {
         throw new ArgumentNullException("sightInfoRepository is null");
     }
     if (tourPlan == null)
     {
         throw new ArgumentNullException("tourPlanRepository is null");
     }
     if (hotelPropertyInfo == null)
     {
         throw new ArgumentNullException("hotelPropertyInfoRepository is null");
     }
     linkInfoRepository = linkInfo;
     sightInfoRepository = sightInfo;
     tourPlanRepository = tourPlan;
     hotelPropertyInfoRepository = hotelPropertyInfo;
 }
开发者ID:JPomichael,项目名称:IPOW,代码行数:30,代码来源:LinksAndTopCountService.cs


示例7: AddUserRole

 public ViewResult AddUserRole(iPow.Infrastructure.Crosscutting.Authorize.Dto.UserRoleDto userRole)
 {
     ViewBag.rolemodel = roleService.GetList();
     if (userRole != null && userRole.RoleID > 0)
     {
         var user = userService.GetUserByName(userRole.UserName);
         if (user != null && user.id > 0)
         {
             //判断User 是否存在当前所选Role  若没有则创建 有的话 阻止
             var isexist = userRoleService.UserHasUserRole(user.id, userRole.RoleID);
             if (isexist)  //该语法表示 已经存在
             {
                 ModelState.AddModelError("", "该用户已经存在同一角色!");
             }
             else
             {
                 var addUserRole = new iPow.Infrastructure.Data.DataSys.Sys_UserRoles();
                 addUserRole.RoleID = userRole.RoleID;
                 addUserRole.UserID = user.id;
                 userRoleService.Add(addUserRole,null);
                 ModelState.AddModelError("", "已成功为用户添加角色");
             }
         }
         else
         {
             ModelState.AddModelError("", "" + "在系统中没有找到这个用户");
         }
     }
     else
     {
         ModelState.AddModelError("", "请使用正确地操作方式");
     }
     return View(userRole);
 }
开发者ID:JPomichael,项目名称:IPOW,代码行数:34,代码来源:UserRoleController.cs


示例8: MvcControllerActionClassService

 public MvcControllerActionClassService(iPow.Domain.Repository.IMvcControllerActionClassRepository mvcControllerActionClass)
 {
     if (mvcControllerActionClass == null)
     {
         throw new ArgumentNullException(" mvcControllerActionClassRepository is null");
     }
     mvcControllerActionClassRepository = mvcControllerActionClass;
 }
开发者ID:JPomichael,项目名称:IPOW,代码行数:8,代码来源:MvcControllerActionClassService.cs


示例9: PicInfoService

 public PicInfoService( iPow.Domain.Repository.IPicInfoRepository picInfo)
 {
     if (picInfo == null)
         {
             throw new ArgumentNullException(" picInfoRepository   is null");
         }
         picInfoRepository = picInfo;
 }
开发者ID:JPomichael,项目名称:IPOW,代码行数:8,代码来源:PicInfoService.cs


示例10: phone_lyService

 public phone_lyService( iPow.Domain.Repository.Iphone_lyRepository phone_ly)
 {
     if (phone_ly == null)
         {
             throw new ArgumentNullException(" phone_lyRepository   is null");
         }
         phone_lyRepository = phone_ly;
 }
开发者ID:JPomichael,项目名称:IPOW,代码行数:8,代码来源:phone_lyService.cs


示例11: LinksInfoService

 public LinksInfoService( iPow.Domain.Repository.ILinksInfoRepository linksInfo)
 {
     if (linksInfo == null)
         {
             throw new ArgumentNullException(" linksInfoRepository   is null");
         }
         linksInfoRepository = linksInfo;
 }
开发者ID:JPomichael,项目名称:IPOW,代码行数:8,代码来源:LinksInfoService.cs


示例12: PicCommService

 public PicCommService( iPow.Domain.Repository.IPicCommRepository picComm)
 {
     if (picComm == null)
         {
             throw new ArgumentNullException(" picCommRepository   is null");
         }
         picCommRepository = picComm;
 }
开发者ID:JPomichael,项目名称:IPOW,代码行数:8,代码来源:PicCommService.cs


示例13: CityInfoService

 public CityInfoService( iPow.Domain.Repository.ICityInfoRepository cityInfo)
 {
     if (cityInfo == null)
         {
             throw new ArgumentNullException(" cityInfoRepository   is null");
         }
         cityInfoRepository = cityInfo;
 }
开发者ID:JPomichael,项目名称:IPOW,代码行数:8,代码来源:CityInfoService.cs


示例14: AdminUserExtensionService

 public AdminUserExtensionService( iPow.Domain.Repository.IAdminUserExtensionRepository adminUserExtension)
 {
     if (adminUserExtension == null)
         {
             throw new ArgumentNullException(" adminUserExtensionRepository   is null");
         }
         adminUserExtensionRepository = adminUserExtension;
 }
开发者ID:JPomichael,项目名称:IPOW,代码行数:8,代码来源:AdminUserExtensionService.cs


示例15: ClientActivityService

 public ClientActivityService( iPow.Domain.Repository.IClientActivityRepository clientActivity)
 {
     if (clientActivity == null)
         {
             throw new ArgumentNullException(" clientActivityRepository   is null");
         }
         clientActivityRepository = clientActivity;
 }
开发者ID:JPomichael,项目名称:IPOW,代码行数:8,代码来源:ClientActivityService.cs


示例16: T_DailyRatesService

 public T_DailyRatesService( iPow.Domain.Repository.IT_DailyRatesRepository t_DailyRates)
 {
     if (t_DailyRates == null)
         {
             throw new ArgumentNullException(" t_DailyRatesRepository   is null");
         }
         t_DailyRatesRepository = t_DailyRates;
 }
开发者ID:JPomichael,项目名称:IPOW,代码行数:8,代码来源:T_DailyRatesService.cs


示例17: SightClassService

 public SightClassService( iPow.Domain.Repository.ISightClassRepository sightClass)
 {
     if (sightClass == null)
         {
             throw new ArgumentNullException(" sightClassRepository   is null");
         }
         sightClassRepository = sightClass;
 }
开发者ID:JPomichael,项目名称:IPOW,代码行数:8,代码来源:SightClassService.cs


示例18: MvcControllerClassService

 public MvcControllerClassService(iPow.Domain.Repository.IMvcControllerClassRepository controllerClass)
 {
     if (controllerClass == null)
     {
         throw new ArgumentNullException("controllerClassService is null");
     }
     controllerClassRepository = controllerClass;
 }
开发者ID:JPomichael,项目名称:IPOW,代码行数:8,代码来源:MvcControllerClassService.cs


示例19: SightInfoCirSightService

 public SightInfoCirSightService( iPow.Domain.Repository.ISightInfoCirSightRepository sightInfoCirSight)
 {
     if (sightInfoCirSight == null)
         {
             throw new ArgumentNullException(" sightInfoCirSightRepository   is null");
         }
         sightInfoCirSightRepository = sightInfoCirSight;
 }
开发者ID:JPomichael,项目名称:IPOW,代码行数:8,代码来源:SightInfoCirSightService.cs


示例20: ArticleInfoService

 public ArticleInfoService( iPow.Domain.Repository.IArticleInfoRepository articleInfo)
 {
     if (articleInfo == null)
         {
             throw new ArgumentNullException(" articleInfoRepository   is null");
         }
         articleInfoRepository = articleInfo;
 }
开发者ID:JPomichael,项目名称:IPOW,代码行数:8,代码来源:ArticleInfoService.cs



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C# iPower类代码示例发布时间:2022-05-24
下一篇:
C# iCalendar类代码示例发布时间:2022-05-24
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap