示例#1
0
 static void ClearDataContext(IDataContext db)
 {
     if (db.CreateSqlProvider() is FirebirdSqlBuilder)
     {
         db.Close();
         FirebirdTools.ClearAllPools();
     }
 }
示例#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();
            }
示例#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();
            }
示例#4
0
 public override void Dispose()
 {
     DataContext.Close();
     FirebirdTools.ClearAllPools();
     base.Dispose();
 }