Example #1
0
        /// <summary>
        /// 根据id获取数据
        /// </summary>
        /// <param name="serviceProvider">依赖注入接口</param>
        /// <param name="ContentId">内容id</param>
        /// <returns></returns>
        public static async System.Threading.Tasks.Task <ContentContext> GetInfo(
            IServiceProvider serviceProvider,
            GuidEntity ContentId)
        {
            Culture.BusyData.Content  db     = new Culture.BusyData.Content(serviceProvider);
            Culture.Entity.CL_Content entity = await db.GetInfo(ContentId);

            return(new ContentContext(serviceProvider, entity, db));
        }
Example #2
0
 /// <summary>
 /// 获取(空信息)
 /// </summary>
 /// <param name="serviceProvider">依赖注入接口</param>
 /// <param name="page">分页信息</param>
 /// <returns></returns>
 public static async System.Threading.Tasks.Task <List <ContentContext> > GetListPage(
     IServiceProvider serviceProvider,
     PageInfo page)
 {
     Culture.BusyData.Content db = new Culture.BusyData.Content(serviceProvider);
     return(await TransList(
                db.GetListPage(page),
                t => { return new ContentContext(serviceProvider, t, db); }));
 }
Example #3
0
 /// <summary>
 /// 根据状态获取信息列表
 /// </summary>
 /// <param name="serviceProvider"></param>
 /// <param name="page"></param>
 /// <param name="createid"></param>
 /// <param name="status"></param>
 /// <returns></returns>
 public static async System.Threading.Tasks.Task <List <ContentContext> > GetListPageCreateID(
     IServiceProvider serviceProvider,
     PageInfo page,
     GuidEntity createid,
     int status)
 {
     Culture.BusyData.Content db = new Culture.BusyData.Content(serviceProvider);
     return(await TransList(
                db.GetListPageCreateID(page, createid, status),
                t => { return new ContentContext(serviceProvider, t, db); }));
 }