App_Code/DDL/D.BLL.EN/ArchiveBLL.cs

(完整代码) 2KB

namespace D.BLL.EN
{
    using D.DAL.EN;
    using D.Entity;
    using System;
    using System.Collections.Generic;
    using System.ComponentModel;

    [DataObject]
    public class ArchiveBLL
    {
        private static ArchiveDAL dal = new ArchiveDAL();

        [DataObjectMethod(DataObjectMethodType.Delete, true)]
        public bool Delete(int ArchiveId)
        {
            return Instance.Delete(ArchiveId);
        }

        [DataObjectMethod(DataObjectMethodType.Select, true)]
        public List<ArchiveInfo> Get(int ArchiveId, string Keys)
        {
            return Instance.DataSource;
        }

        [DataObjectMethod(DataObjectMethodType.Select, false)]
        public List<ArchiveInfo> GetByClassId(int ArchiveId, string Keys)
        {
            return Instance.GetByClassId(ArchiveId);
        }

        [DataObjectMethod(DataObjectMethodType.Select, false)]
        public List<ArchiveInfo> GetBySearch(int ArchiveId, string Keys)
        {
            return Instance.GetBySearch(Keys);
        }

        [DataObjectMethod(DataObjectMethodType.Insert, true)]
        public object Insert(string ClassId, string Title, string Content, string Image, string KeyWords, string Description, string ProductInfo, bool Show, bool Focus, bool IsNew, string file)
        {
            return Instance.Insert(ClassId, Title, Content, Image, KeyWords, Description, ProductInfo, Show, Focus, IsNew, file);
        }

        [DataObjectMethod(DataObjectMethodType.Insert, true)]
        public bool Update(string ClassId, string Title, string Content, string Image, string KeyWords, string Description, string ProductInfo, bool Show, bool Focus, bool IsNew, string File, object ArchiveId)
        {
            return Instance.Update(ClassId, Title, Content, Image, KeyWords, Description, ProductInfo, Show, Focus, IsNew, File, ArchiveId);
        }

        public static ArchiveDAL Instance
        {
            get
            {
                return dal;
            }
        }
    }
}

24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明

AI 解读

登录后可用,每次 10 积分,解读结果公开显示在下面。

还没有人解读过这个文件。