Example #1
0
 static void ClearDataContext(IDataContext db)
 {
     if (db.CreateSqlProvider() is FirebirdSqlBuilder)
     {
         db.Close();
         FirebirdTools.ClearAllPools();
     }
 }
Example #2
0
            public override void Dispose()
            {
                if (DataContext is DataConnection dc && dc.Connection is FbConnection fbc)
                {
                    FbConnection.ClearPool(fbc);
                }

                DataContext.Close();
                FirebirdTools.ClearAllPools();
                base.Dispose();
            }
Example #3
0
            public override void Dispose()
            {
                if (DataContext is DataConnection dc && dc.DataProvider.Name.Contains(ProviderName.Firebird))
                {
                    FirebirdTools.ClearAllPools();
                }

                DataContext.Close();
                FirebirdTools.ClearAllPools();
                base.Dispose();
            }
Example #4
0
 public override void Dispose()
 {
     DataContext.Close();
     FirebirdTools.ClearAllPools();
     base.Dispose();
 }