예제 #1
0
 /// <summary>
 /// 获取(空信息)
 /// </summary>
 /// <param name="serviceProvider">依赖注入接口</param>
 /// <param name="page">分页信息</param>
 /// <returns></returns>
 public static async System.Threading.Tasks.Task <List <CommContext> > GetListPage(
     IServiceProvider serviceProvider,
     PageInfo page)
 {
     Culture.BusyData.Comm db = new Culture.BusyData.Comm(serviceProvider);
     return(await TransList(
                db.GetListPage(page),
                t => { return new CommContext(serviceProvider, t, db); }));
 }
예제 #2
0
        /// <summary>
        /// 根据id获取数据
        /// </summary>
        /// <param name="serviceProvider">依赖注入接口</param>
        /// <param name="CommID">评论id</param>
        /// <returns></returns>
        public static async System.Threading.Tasks.Task <CommContext> GetInfo(
            IServiceProvider serviceProvider,
            GuidEntity CommID)
        {
            Culture.BusyData.Comm  db     = new Culture.BusyData.Comm(serviceProvider);
            Culture.Entity.CL_Comm entity = await db.GetInfo(CommID);

            return(new CommContext(serviceProvider, entity, db));
        }