Changeset 2 for Common/Database.cs


Ignore:
Timestamp:
Feb 14, 2019, 5:29:40 PM (6 years ago)
Author:
chronos
Message:
  • Added: Registry extension methods.
  • Added: Search history in Find dialog.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Common/Database.cs

    r1 r2  
    9494        }
    9595
    96         private static DbConnection GetConnection()
     96        public static DbConnection GetConnection()
    9797        {
    9898            DbConnection connection = GetFactory().CreateConnection();
     
    529529        public void ExecuteQueries()
    530530        {
    531 #if SSS
     531#if NO_TRANSACTION
    532532            foreach (Query item in queries)
    533533            {
    534534                Database.ExecuteNonQuery(item.query, item.parameters);
    535535            }
    536 #endif
     536#else
    537537            lock (threadQueries)
    538538            {
     
    540540                Monitor.Pulse(threadQueries);
    541541            }
     542#endif
    542543            queries.Clear();
    543544        }
Note: See TracChangeset for help on using the changeset viewer.