Example #1
0
 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);
     }
 }
Example #2
0
 internal static TypeData GetTypeDataByTableName(string tableName)
 {
     return(TypesByTableName.TryGetValue(tableName));
 }