コード例 #1
0
		// create singleton connection factory.
		internal static DbConnectionFactory GetSingleton (DbProviderFactory pvdrFactory)
		{
			lock (lockobj) {
				if (Instance == null)
					Instance = new SqliteConnectionFactory (pvdrFactory);
				return Instance;
			}
		}
コード例 #2
0
 // create singleton connection factory.
 internal static DbConnectionFactory GetSingleton(DbProviderFactory pvdrFactory)
 {
     lock (lockobj) {
         if (Instance == null)
         {
             Instance = new SqliteConnectionFactory(pvdrFactory);
         }
         return(Instance);
     }
 }