freelabel.cs

来自「最好用的站点内容管理系统 全部源代码都有」· CS 代码 · 共 57 行

CS
57
字号
//======================================================
//==     (c)2008 aspxcms inc by NeTCMS v1.0              ==
//==          Forum:bbs.aspxcms.com                   ==
//==         Website:www.aspxcms.com                  ==
//======================================================
using System;
using System.Collections.Generic;
using System.Text;
using System.Data;
using NetCMS.Model;
using NetCMS.DALFactory;

namespace NetCMS.Content
{
    public class FreeLabel
    {

        private IFreeLabel dal;
        public FreeLabel()
        {
            dal = DataAccess.CreateFreeLabel();
        }
        public IList<FreeLablelDBInfo> GetTables()
        {
            return dal.GetTables();
        }
        public IList<FreeLablelDBInfo> GetFields(string TableName)
        {
            return dal.GetFields(TableName);
        }
        public bool IsNameRepeat(int id, string Name)
        {
            return dal.IsNameRepeat(id, Name);
        }
        public bool Add(FreeLabelInfo info)
        {
            info.SiteID = NetCMS.Global.Current.SiteID;
            return dal.Add(info);
        }
        public bool Update(FreeLabelInfo info)
        {
            return dal.Update(info);
        }
        public FreeLabelInfo GetSingle(int id)
        {
            return dal.GetSingle(id);
        }
        public bool Delete(int id)
        {
            return dal.Delete(id);
        }
        public DataTable TestSQL(string Sql)
        {
            return dal.TestSQL(Sql);
        }
    }
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?