/// <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); })); }
/// <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)); }