// create singleton connection factory.
 internal static OdbcConnectionFactory GetSingleton (OdbcFactory pvdrFactory)
 {
         lock (lockobj) 
                 {
                         if (Instance == null)
                                 Instance = new OdbcConnectionFactory (pvdrFactory);
                         return Instance;
                 }
 }
예제 #2
0
 // create singleton connection factory.
 internal static OdbcConnectionFactory GetSingleton(OdbcFactory pvdrFactory)
 {
     lock (lockobj)
     {
         if (Instance == null)
         {
             Instance = new OdbcConnectionFactory(pvdrFactory);
         }
         return(Instance);
     }
 }
 internal OdbcConnection (OdbcConnectionFactory factory) 
         : base ( (DbConnectionFactory) factory)
 {
         Init (String.Empty);
 }