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

C# IMVCForumContext类代码示例

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

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



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

示例1: CategoryService

 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="context"></param>
 /// <param name="roleService"> </param>
 /// <param name="categoryNotificationService"> </param>
 /// <param name="categoryPermissionForRoleService"></param>
 public CategoryService(IMVCForumContext context, IRoleService roleService, ICategoryNotificationService categoryNotificationService, ICategoryPermissionForRoleService categoryPermissionForRoleService)
 {
     _roleService = roleService;
     _categoryNotificationService = categoryNotificationService;
     _categoryPermissionForRoleService = categoryPermissionForRoleService;
     _context = context as MVCForumContext;
 }
开发者ID:ivanchen52,项目名称:mvcforum,代码行数:14,代码来源:CategoryService.cs


示例2: RoleService

 public RoleService(IMVCForumContext context, ICategoryPermissionForRoleService categoryPermissionForRoleService, IPermissionService permissionService, IGlobalPermissionForRoleService globalPermissionForRoleService)
 {
     _categoryPermissionForRoleService = categoryPermissionForRoleService;
     _permissionService = permissionService;
     _globalPermissionForRoleService = globalPermissionForRoleService;
     _context = context as MVCForumContext;
 }
开发者ID:ivanchen52,项目名称:mvcforum,代码行数:7,代码来源:RoleService.cs


示例3: MembershipService

 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="context"></param>
 /// <param name="settingsService"> </param>
 /// <param name="emailService"> </param>
 /// <param name="localizationService"> </param>
 /// <param name="activityService"> </param>
 /// <param name="privateMessageService"> </param>
 /// <param name="membershipUserPointsService"> </param>
 /// <param name="topicNotificationService"> </param>
 /// <param name="voteService"> </param>
 /// <param name="badgeService"> </param>
 /// <param name="categoryNotificationService"> </param>
 /// <param name="loggingService"></param>
 /// <param name="uploadedFileService"></param>
 /// <param name="postService"></param>
 /// <param name="pollVoteService"></param>
 /// <param name="pollAnswerService"></param>
 /// <param name="pollService"></param>
 /// <param name="topicService"></param>
 /// <param name="favouriteService"></param>
 /// <param name="categoryService"></param>
 public MembershipService(IMVCForumContext context, ISettingsService settingsService,
     IEmailService emailService, ILocalizationService localizationService, IActivityService activityService,
     IPrivateMessageService privateMessageService, IMembershipUserPointsService membershipUserPointsService,
     ITopicNotificationService topicNotificationService, IVoteService voteService, IBadgeService badgeService,
     ICategoryNotificationService categoryNotificationService, ILoggingService loggingService, IUploadedFileService uploadedFileService,
     IPostService postService, IPollVoteService pollVoteService, IPollAnswerService pollAnswerService,
     IPollService pollService, ITopicService topicService, IFavouriteService favouriteService, 
     ICategoryService categoryService, IPostEditService postEditService)
 {
     _settingsService = settingsService;
     _emailService = emailService;
     _localizationService = localizationService;
     _activityService = activityService;
     _privateMessageService = privateMessageService;
     _membershipUserPointsService = membershipUserPointsService;
     _topicNotificationService = topicNotificationService;
     _voteService = voteService;
     _badgeService = badgeService;
     _categoryNotificationService = categoryNotificationService;
     _loggingService = loggingService;
     _uploadedFileService = uploadedFileService;
     _postService = postService;
     _pollVoteService = pollVoteService;
     _pollAnswerService = pollAnswerService;
     _pollService = pollService;
     _topicService = topicService;
     _favouriteService = favouriteService;
     _categoryService = categoryService;
     _postEditService = postEditService;
     _context = context as MVCForumContext;
 }
开发者ID:flerka,项目名称:mvcforum,代码行数:54,代码来源:MembershipService.cs


示例4: UnitOfWorkManager

        public UnitOfWorkManager(IMVCForumContext context)
        {
            // http://stackoverflow.com/questions/3552000/entity-framework-code-only-error-the-model-backing-the-context-has-changed-sinc
            Database.SetInitializer<MVCForumContext>(null);

            _context = context as MVCForumContext;
        }
开发者ID:R3MUSDevPack,项目名称:Forums,代码行数:7,代码来源:UnitOfWorkManager.cs


示例5: TopicTagService

 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="context"></param>
 /// <param name="topicService"></param>
 /// <param name="categoryService"></param>
 /// <param name="badgeService"></param>
 public TopicTagService(IMVCForumContext context, ITopicService topicService, ICategoryService categoryService, IBadgeService badgeService)
 {
     _topicService = topicService;
     _categoryService = categoryService;
     _badgeService = badgeService;
     _context = context as MVCForumContext;
 }
开发者ID:ivanchen52,项目名称:mvcforum,代码行数:14,代码来源:TopicTagService.cs


示例6: UnitOfWorkManager

 public UnitOfWorkManager(IMVCForumContext context)
 {
     //http://www.entityframeworktutorial.net/code-first/automated-migration-in-code-first.aspx
     Database.SetInitializer(new MigrateDatabaseToLatestVersion<MVCForumContext, Migrations.Configuration>(AppConstants.MvcForumContext));
     //Database.SetInitializer<MVCForumContext>(null);
     _context = context as MVCForumContext;
 }
开发者ID:petemidge,项目名称:mvcforum,代码行数:7,代码来源:UnitOfWorkManager.cs


示例7: ActivityService

 /// <summary>
 /// Constructor
 /// </summary>
 public ActivityService(IBadgeService badgeService, ILoggingService loggingService, IMVCForumContext context, ICacheService cacheService)
 {
     _badgeService = badgeService;
     _loggingService = loggingService;
     _cacheService = cacheService;
     _context = context as MVCForumContext;
 }
开发者ID:lenwen,项目名称:mvcforum,代码行数:10,代码来源:ActivityService.cs


示例8: LocalizationService

 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="settingsService"> </param>
 /// <param name="loggingService"></param>
 /// <param name="cacheService"></param>
 /// <param name="context"></param>
 public LocalizationService(ISettingsService settingsService, ILoggingService loggingService, ICacheService cacheService, IMVCForumContext context)
 {
     _settingsService = settingsService;
     _loggingService = loggingService;
     _cacheService = cacheService;
     _context = context as MVCForumContext;
     _perRequestLanguageStrings = ResourceKeysByLanguage(CurrentLanguage);
 }
开发者ID:lenwen,项目名称:mvcforum,代码行数:15,代码来源:LocalizationService.cs


示例9: PostService

 public PostService(IMVCForumContext context,IMembershipUserPointsService membershipUserPointsService,
     ISettingsService settingsService, IRoleService roleService,
     ILocalizationService localizationService, IVoteService voteService, IUploadedFileService uploadedFileService, IFavouriteService favouriteService, IConfigService configService, IPostEditService postEditService)
 {
     _roleService = roleService;
     _membershipUserPointsService = membershipUserPointsService;
     _settingsService = settingsService;
     _localizationService = localizationService;
     _voteService = voteService;
     _uploadedFileService = uploadedFileService;
     _favouriteService = favouriteService;
     _configService = configService;
     _postEditService = postEditService;
     _context = context as MVCForumContext;
 }
开发者ID:ivanchen52,项目名称:mvcforum,代码行数:15,代码来源:PostService.cs


示例10: TopicService

 public TopicService(IMVCForumContext context, IMembershipUserPointsService membershipUserPointsService,
     ISettingsService settingsService, ITopicNotificationService topicNotificationService,
     IFavouriteService favouriteService,
     IPostService postService, IRoleService roleService, IPollService pollService, IPollAnswerService pollAnswerService, ICacheService cacheService)
 {
     _membershipUserPointsService = membershipUserPointsService;
     _settingsService = settingsService;
     _topicNotificationService = topicNotificationService;
     _favouriteService = favouriteService;
     _postService = postService;
     _roleService = roleService;
     _pollService = pollService;
     _pollAnswerService = pollAnswerService;
     _cacheService = cacheService;
     _context = context as MVCForumContext;
 }
开发者ID:lenwen,项目名称:mvcforum,代码行数:16,代码来源:TopicService.cs


示例11: EmailService

 public EmailService(ILoggingService loggingService, ISettingsService settingsService, IMVCForumContext context)
 {
     _loggingService = loggingService;
     _settingsService = settingsService;
     _context = context as MVCForumContext;
 }
开发者ID:lenwen,项目名称:mvcforum,代码行数:6,代码来源:EmailService.cs


示例12: TopicNotificationRepository

 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="context"> </param>
 public TopicNotificationRepository(IMVCForumContext context)
 {
     _context = context as MVCForumContext;
 }
开发者ID:Xamarui,项目名称:mvcforum,代码行数:8,代码来源:TopicNotificationRepository.cs


示例13: PollVoteService

 public PollVoteService(IMVCForumContext context)
 {
     _context = context as MVCForumContext;
 }
开发者ID:ivanchen52,项目名称:mvcforum,代码行数:4,代码来源:PollVoteService.cs


示例14: PrivateMessageRepository

 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="context"> </param>
 public PrivateMessageRepository(IMVCForumContext context)
 {
     _context = context as MVCForumContext;
 }
开发者ID:huchao007,项目名称:mvcforum,代码行数:8,代码来源:PrivateMessageRepository.cs


示例15: CategoryNotificationRepository

 public CategoryNotificationRepository(IMVCForumContext context)
 {
     _context = context as MVCForumContext;
 }
开发者ID:R3MUSDevPack,项目名称:Forums,代码行数:4,代码来源:CategoryNotificationRepository.cs


示例16: BlockService

 public BlockService(IMVCForumContext context, ICacheService cacheService)
 {
     _cacheService = cacheService;
     _context = context as MVCForumContext;
 }
开发者ID:lenwen,项目名称:mvcforum,代码行数:5,代码来源:BlockService.cs


示例17: LocalizationRepository

 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="context"> </param>
 public LocalizationRepository(IMVCForumContext context)
 {
     _context = context as MVCForumContext;
 }
开发者ID:kangjh0815,项目名称:test,代码行数:8,代码来源:LocalizationRepository.cs


示例18: PostEditService

 public PostEditService(IMVCForumContext context)
 {
     _context = context as MVCForumContext;
 }
开发者ID:ivanchen52,项目名称:mvcforum,代码行数:4,代码来源:PostEditService.cs


示例19: TopicNotificationService

 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="context"> </param>
 public TopicNotificationService(IMVCForumContext context)
 {
     _context = context as MVCForumContext;
 }
开发者ID:lenwen,项目名称:mvcforum,代码行数:8,代码来源:TopicNotificationService.cs


示例20: FavouriteRepository

 public FavouriteRepository(IMVCForumContext context)
 {
     _context = context as MVCForumContext;
 }
开发者ID:Xamarui,项目名称:mvcforum,代码行数:4,代码来源:FavouriteRepository.cs



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


鲜花

握手

雷人

路过

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

请发表评论

全部评论

专题导读
上一篇:
C# IMac类代码示例发布时间:2022-05-24
下一篇:
C# IMLTrain类代码示例发布时间: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