本文整理汇总了C#中Miaow类的典型用法代码示例。如果您正苦于以下问题:C# Miaow类的具体用法?C# Miaow怎么用?C# Miaow使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
Miaow类属于命名空间,在下文中一共展示了Miaow类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。
示例1: LinksAndTopCountService
/// <summary>
/// Initializes a new instance of the <see cref="LinksAndTopCountService"/> class.
/// </summary>
public LinksAndTopCountService(Miaow.Domain.Repository.ILinkInfoRepository linkInfo,
Miaow.Domain.Repository.ISightInfoRepository sightInfo,
Miaow.Domain.Repository.ITourPlanRepository tourPlan,
Miaow.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,项目名称:Miaow,代码行数:30,代码来源:LinksAndTopCountService.cs
示例2: ArticleService
/// <summary>
/// Initializes a new instance of the <see cref="ArticleService"/> class.
/// </summary>
/// <param name="articleInfo">The article info.</param>
public ArticleService(Miaow.Domain.Repository.IArticleInfoRepository articleInfo,
Miaow.Domain.Repository.ISightInfoRepository sightInfo,
Miaow.Domain.Repository.IArticleCommRepository articleComm,
Miaow.Domain.Repository.IArticleClassRepository articleClass,
Miaow.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,项目名称:Miaow,代码行数:37,代码来源:ArticleService.cs
示例3: MiaowWebWorkContext
/// <summary>
/// Initializes a new instance of the <see cref="MiaowWebWorkContext"/> class.
/// </summary>
/// <param name="MiaowHttpContext">The HTTP context.</param>
/// <param name="MiaowUserService">The Miaow user service.</param>
/// <param name="MiaowCityInfoService">The Miaow city info service.</param>
public MiaowWebWorkContext(HttpContextBase MiaowHttpContext,
Miaow.Infrastructure.Crosscutting.Authorize.IUserService MiaowUserService,
Miaow.Infrastructure.Crosscutting.Comm.Service.ICityInfoService MiaowCityInfoService,
Miaow.Infrastructure.Crosscutting.Authorize.IUserExtensionService userExtension)
{
if (MiaowHttpContext == null)
{
throw new ArgumentNullException("httpContext is null");
}
if (MiaowUserService == null)
{
throw new ArgumentNullException("userService is null");
}
if (MiaowCityInfoService == null)
{
throw new ArgumentNullException("cityInfoService is null");
}
if (userExtension == null)
{
throw new ArgumentNullException("userExtensionService is null");
}
httpContext = MiaowHttpContext;
userService = MiaowUserService;
cityInfoService = MiaowCityInfoService;
userExtensionService = userExtension;
}
开发者ID:JPomichael,项目名称:Miaow,代码行数:32,代码来源:iPowWebWorkContext.cs
示例4: TourDetailController
public TourDetailController(Miaow.Infrastructure.Crosscutting.NetFramework.IWorkContext work,
Miaow.Domain.Repository.ITourClassRepository tourClass,
Miaow.Domain.Repository.ITourPlanDetailRepository tourPlanDetail,
Miaow.Domain.Repository.ITourPlanRepository tourPlan,
Miaow.Domain.Repository.ISightInfoRepository sightInfo,
Miaow.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,项目名称:Miaow,代码行数:34,代码来源:TourDetailController.cs
示例5: AddUserRole
public ViewResult AddUserRole(Miaow.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 Miaow.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,项目名称:Miaow,代码行数:34,代码来源:UserRoleController.cs
示例6: RolePermissionController
public RolePermissionController(Miaow.Infrastructure.Crosscutting.NetFramework.IWorkContext work,
Miaow.Infrastructure.Crosscutting.Authorize.IRoleService role,
Miaow.Infrastructure.Crosscutting.Authorize.IMvcActionService mvcAction,
Miaow.Infrastructure.Crosscutting.Authorize.IMvcControllerClassService mvcControllerClass,
Miaow.Infrastructure.Crosscutting.Authorize.IMvcControllerService mvcController,
Miaow.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,项目名称:Miaow,代码行数:33,代码来源:RolePermissionController.cs
示例7: 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(Miaow.Domain.Repository.IPicInfoRepository picInfo,
Miaow.Domain.Repository.IPicCommRepository picComm,
Miaow.Domain.Repository.IPicClassRepository picClass,
Miaow.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,项目名称:Miaow,代码行数:32,代码来源:PicInfoService.cs
示例8: 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,
Miaow.Domain.Repository.ICityAreaCodeRepository cityAreaCode,
IHotelAroundHotelService hahService,
Miaow.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,项目名称:Miaow,代码行数:38,代码来源:HotelTrafficService.cs
示例9: ArticleCommService
public ArticleCommService( Miaow.Domain.Repository.IArticleCommRepository articleComm)
{
if (articleComm == null)
{
throw new ArgumentNullException(" articleCommRepository is null");
}
articleCommRepository = articleComm;
}
开发者ID:JPomichael,项目名称:Miaow,代码行数:8,代码来源:ArticleCommService.cs
示例10: MvcControllerClassService
public MvcControllerClassService(Miaow.Domain.Repository.IMvcControllerClassRepository controllerClass)
{
if (controllerClass == null)
{
throw new ArgumentNullException("controllerClassService is null");
}
controllerClassRepository = controllerClass;
}
开发者ID:JPomichael,项目名称:Miaow,代码行数:8,代码来源:MvcControllerClassService.cs
示例11: SightVouchService
public SightVouchService( Miaow.Domain.Repository.ISightVouchRepository sightVouch)
{
if (sightVouch == null)
{
throw new ArgumentNullException(" sightVouchRepository is null");
}
sightVouchRepository = sightVouch;
}
开发者ID:JPomichael,项目名称:Miaow,代码行数:8,代码来源:SightVouchService.cs
示例12: SightClassService
public SightClassService( Miaow.Domain.Repository.ISightClassRepository sightClass)
{
if (sightClass == null)
{
throw new ArgumentNullException(" sightClassRepository is null");
}
sightClassRepository = sightClass;
}
开发者ID:JPomichael,项目名称:Miaow,代码行数:8,代码来源:SightClassService.cs
示例13: TourPlanService
public TourPlanService( Miaow.Domain.Repository.ITourPlanRepository tourPlan)
{
if (tourPlan == null)
{
throw new ArgumentNullException(" tourPlanRepository is null");
}
tourPlanRepository = tourPlan;
}
开发者ID:JPomichael,项目名称:Miaow,代码行数:8,代码来源:TourPlanService.cs
示例14: SearchService
/// <summary>
/// Initializes a new instance of the <see cref="SearchService"/> class.
/// </summary>
/// <param name="addService">The add service.</param>
public SearchService(Miaow.Application.jq.Service.IAddSortService addService)
{
if (addService == null)
{
throw new ArgumentNullException("addsortservice is null");
}
addSortService = addService;
}
开发者ID:JPomichael,项目名称:Miaow,代码行数:12,代码来源:SearchService.cs
示例15: LinksClassService
public LinksClassService( Miaow.Domain.Repository.ILinksClassRepository linksClass)
{
if (linksClass == null)
{
throw new ArgumentNullException(" linksClassRepository is null");
}
linksClassRepository = linksClass;
}
开发者ID:JPomichael,项目名称:Miaow,代码行数:8,代码来源:LinksClassService.cs
示例16: CityInfoMoreService
public CityInfoMoreService( Miaow.Domain.Repository.ICityInfoMoreRepository cityInfoMore)
{
if (cityInfoMore == null)
{
throw new ArgumentNullException(" cityInfoMoreRepository is null");
}
cityInfoMoreRepository = cityInfoMore;
}
开发者ID:JPomichael,项目名称:Miaow,代码行数:8,代码来源:CityInfoMoreService.cs
示例17: SightInfoSortService
public SightInfoSortService( Miaow.Domain.Repository.ISightInfoSortRepository sightInfoSort)
{
if (sightInfoSort == null)
{
throw new ArgumentNullException(" sightInfoSortRepository is null");
}
sightInfoSortRepository = sightInfoSort;
}
开发者ID:JPomichael,项目名称:Miaow,代码行数:8,代码来源:SightInfoSortService.cs
示例18: HotelPropertyInfo2Service
public HotelPropertyInfo2Service( Miaow.Domain.Repository.IHotelPropertyInfo2Repository hotelPropertyInfo2)
{
if (hotelPropertyInfo2 == null)
{
throw new ArgumentNullException(" hotelPropertyInfo2Repository is null");
}
hotelPropertyInfo2Repository = hotelPropertyInfo2;
}
开发者ID:JPomichael,项目名称:Miaow,代码行数:8,代码来源:HotelPropertyInfo2Service.cs
示例19: DiscountClassService
public DiscountClassService(Miaow.Domain.Repository.IDiscountClassRepository discountClass)
{
if (discountClass == null)
{
throw new ArgumentNullException(" discountClassRepository is null");
}
discountClassRepository = discountClass;
}
开发者ID:JPomichael,项目名称:Miaow,代码行数:8,代码来源:DiscountClassService.cs
示例20: LinksInfoService
public LinksInfoService( Miaow.Domain.Repository.ILinksInfoRepository linksInfo)
{
if (linksInfo == null)
{
throw new ArgumentNullException(" linksInfoRepository is null");
}
linksInfoRepository = linksInfo;
}
开发者ID:JPomichael,项目名称:Miaow,代码行数:8,代码来源:LinksInfoService.cs
注:本文中的Miaow类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论