⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 collectionfieldrules.cs

📁 动易SiteFactory&#8482 网上商店系统1.0源代码
💻 CS
字号:
namespace PowerEasy.Collection
{
    using PowerEasy.Common;
    using PowerEasy.IDal.Collection;
    using PowerEasy.Model.Collection;
    using System;
    using System.Collections.Generic;

    public static class CollectionFieldRules
    {
        private static readonly ICollectionFieldRules dal = DataAccess.CreateCollectionFieldRules();

        public static bool Add(CollectionFieldRuleInfo collectionFieldRuleInfo)
        {
            return dal.Add(collectionFieldRuleInfo);
        }

        public static bool Delete(int id)
        {
            return dal.Delete(id);
        }

        public static bool DeleteItem(int itemId)
        {
            return dal.DeleteItem(itemId);
        }

        public static bool Exists(int itemId, string fieldName)
        {
            return dal.Exists(itemId, DataSecurity.FilterBadChar(fieldName));
        }

        public static CollectionFieldRuleInfo GetInfoById(int itemId, string fieldName)
        {
            return dal.GetInfoById(itemId, DataSecurity.FilterBadChar(fieldName));
        }

        public static IList<CollectionFieldRuleInfo> GetList(int itemId)
        {
            return dal.GetList(itemId);
        }

        public static bool Update(CollectionFieldRuleInfo collectionFieldRuleInfo)
        {
            return dal.Update(collectionFieldRuleInfo);
        }
    }
}

⌨️ 快捷键说明

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