internal static TypeData GetTypeData(Type t) { if (Types.ContainsKey(t)) { return(Types[t]); } lock (GetTypeDataEntrance) { if (Types.ContainsKey(t)) { return(Types[t]); } var td = new TypeData(t); Types.Add(t, td); if (td.FqlTableName != null) { TypesByTableName.Add(td.FqlTableName, td); } return(td); } }
internal static TypeData GetTypeDataByTableName(string tableName) { return(TypesByTableName.TryGetValue(tableName)); }