// create singleton connection factory.
 internal static OdbcConnectionFactory GetSingleton (OdbcFactory pvdrFactory)
 {
         lock (lockobj) 
                 {
                         if (Instance == null)
                                 Instance = new OdbcConnectionFactory (pvdrFactory);
                         return Instance;
                 }
 }
Exemplo n.º 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);
 }