// 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);
 }