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