Example #1
0
 /// <summary>
 /// 获取OrganizeDal
 /// </summary>
 public static IOrganizeDal GetOrganizeDal()
 {
     return(QssCacheHelper.GetCallContextCache <OrganizeDal>("OrganizeDal"));
 }
Example #2
0
 /// <summary>
 /// 获取QuestionDal
 /// </summary>
 public static IQuestionDal GetQuestionDal()
 {
     return(QssCacheHelper.GetCallContextCache <QuestionDal>("QuestionDal"));
 }
Example #3
0
 /// <summary>
 /// 获取LetterDal
 /// </summary>
 /// <returns></returns>
 public static ILetterDal GetLetterDal()
 {
     return(QssCacheHelper.GetCallContextCache <LetterDal>("LetterDal"));
 }
Example #4
0
 /// <summary>
 /// 获取LogDal
 /// </summary>
 public static ILogDal GetLogDal()
 {
     return(QssCacheHelper.GetCallContextCache <LogDal>("LogDal"));
 }
Example #5
0
 /// <summary>
 /// 获取WebConfigBll
 /// </summary>
 /// <returns></returns>
 public static IWebConfigService GetWebConfigService()
 {
     return(QssCacheHelper.GetCallContextCache <WebConfigService>("WebConfigService"));
 }
Example #6
0
 /// <summary>
 /// 获取QssDbSession
 /// </summary>
 /// <returns></returns>
 public static IQssDbSession GetCurrentDbSession()
 {
     return(QssCacheHelper.GetCallContextCache <QssDbSession>("QssDbSession"));
 }
Example #7
0
 /// <summary>
 /// 获取UserBll
 /// </summary>
 /// <returns></returns>
 public static IUserService GetUserService()
 {
     return(QssCacheHelper.GetCallContextCache <UserService>("UserService"));
 }
Example #8
0
 /// <summary>
 /// 获取UserDal
 /// </summary>
 public static IUserDal GetUserDal()
 {
     return(QssCacheHelper.GetCallContextCache <UserDal>("UserDal"));
 }
Example #9
0
 /// <summary>
 /// 获取RoleBll
 /// </summary>
 /// <returns></returns>
 public static IRoleService GetRoleService()
 {
     return(QssCacheHelper.GetCallContextCache <RoleService>("RoleService"));
 }
Example #10
0
 /// <summary>
 /// 获取SysNewsBll
 /// </summary>
 /// <returns></returns>
 public static ISysNewsService GetSysNewsService()
 {
     return(QssCacheHelper.GetCallContextCache <SysNewsService>("SysNewsService"));
 }
Example #11
0
 /// <summary>
 /// 获取QuestionBll
 /// </summary>
 /// <returns></returns>
 public static IQuestionService GetQuestionService()
 {
     return(QssCacheHelper.GetCallContextCache <QuestionService>("QuestionService"));
 }
Example #12
0
 /// <summary>
 /// 获取OrganizeBll
 /// </summary>
 /// <returns></returns>
 public static IOrganizeService GetOrganizeService()
 {
     return(QssCacheHelper.GetCallContextCache <OrganizeService>("OrganizeService"));
 }
Example #13
0
 /// <summary>
 /// 获取LogBll
 /// </summary>
 /// <returns></returns>
 public static ILogService GetLogService()
 {
     return(QssCacheHelper.GetCallContextCache <LogService>("LogService"));
 }
Example #14
0
 /// <summary>
 /// 获取OrganizeDal
 /// </summary>
 public static IRoleDal GetRoleDal()
 {
     return(QssCacheHelper.GetCallContextCache <RoleDal>("RoleDal"));
 }
Example #15
0
 /// <summary>
 /// 获取当前上下文
 /// 保证一次请求共用一个上下文
 /// </summary>
 /// <returns></returns>
 public static QssDbContext GetCurrentDbContext()
 {
     // 保证同一线程共用一个数据库上下文
     return(QssCacheHelper.GetCallContextCache <QssDbContext>("QssDbContext"));
 }
Example #16
0
 /// <summary>
 /// 获取SysNewsDal
 /// </summary>
 public static ISysNewsDal GetSysNewsDal()
 {
     return(QssCacheHelper.GetCallContextCache <SysNewsDal>("SysNewsDal"));
 }
Example #17
0
 /// <summary>
 /// 获取WebConfigDal
 /// </summary>
 public static IWebConfigDal GetWebConfigDal()
 {
     return(QssCacheHelper.GetCallContextCache <WebConfigDal>("WebConfigDal"));
 }
Example #18
0
 /// <summary>
 /// 获取VoteDal
 /// </summary>
 public static IVoteDal GetVoteDal()
 {
     return(QssCacheHelper.GetCallContextCache <VoteDal>("VoteDal"));
 }
Example #19
0
 /// <summary>
 /// 获取VoteOptionBll
 /// </summary>
 /// <returns></returns>
 public static IVoteOptionService GetVoteOptionService()
 {
     return(QssCacheHelper.GetCallContextCache <VoteOptionService>("VoteOptionService"));
 }