using SqlSugar; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace HH.WCS.QingXigongchang.util { /// /// 该表太麻烦, 使用每个项目一个json的配置方式。 /// 配置一次,省略了每次 多环境测试时的改动 /// [AttributeUsage(AttributeTargets.Class, Inherited = true)] class SuGGAttribute : SugarTable { public static Dictionary attributes = new Dictionary(); public SuGGAttribute(string tableName) : base(tableName) { string value = ""; if (attributes.TryGetValue(TableName, out value)) TableName = value.ToUpper(); } } }