1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
| using System;
| using System.Collections.Generic;
| using SqlSugar;
|
| namespace HH.WCS.Mobox3.Template.Util.Helper
| {
|
| [AttributeUsage(AttributeTargets.Class, Inherited = true)]
| class STAttribute : SugarTable
| {
| public static Dictionary<string, string> attributes = new Dictionary<string, string>();
| public STAttribute(string tableName) : base(tableName)
| {
| string value = "";
| if (attributes.TryGetValue(TableName, out value))
| TableName = value.ToUpper();
| }
|
| }
| }
|
|