/// <summary> /// 增加架构配置表,存在则更新 /// </summary> /// <param name="type"></param> /// <param name="schema"></param> public static void AddSchema(Type type, SchemaTable schema) { if (type != null && !string.IsNullOrEmpty(type.FullName)) { SchemaTable oldValue; if (SchemaSet.TryGetValue(type.FullName, out oldValue)) { SchemaSet.TryUpdate(type.FullName, schema, oldValue); } else { SchemaSet.TryAdd(type.FullName, schema); } } }