InitCollections() 정적인 개인적인 메소드

static private InitCollections ( MySqlConnection connection ) : void
connection MySqlConnection
리턴 void
예제 #1
0
 internal static int GetMaxLength(string charset, MySqlConnection connection)
 {
     lock (CharSetMap.lockObject)
     {
         if (CharSetMap.maxLengths == null)
         {
             CharSetMap.InitCollections(connection);
         }
     }
     if (!CharSetMap.maxLengths.ContainsKey(charset))
     {
         return(1);
     }
     return(CharSetMap.maxLengths[charset]);
 }
예제 #2
0
 internal static string GetDefaultCollation(string charset, MySqlConnection connection)
 {
     lock (CharSetMap.lockObject)
     {
         if (CharSetMap.defaultCollations == null)
         {
             CharSetMap.InitCollections(connection);
         }
     }
     if (!CharSetMap.defaultCollations.ContainsKey(charset))
     {
         return(null);
     }
     return(CharSetMap.defaultCollations[charset]);
 }