static void ClearDataContext(IDataContext db) { if (db.CreateSqlProvider() is FirebirdSqlBuilder) { db.Close(); FirebirdTools.ClearAllPools(); } }
public override void Dispose() { if (DataContext is DataConnection dc && dc.Connection is FbConnection fbc) { FbConnection.ClearPool(fbc); } DataContext.Close(); FirebirdTools.ClearAllPools(); base.Dispose(); }
public override void Dispose() { if (DataContext is DataConnection dc && dc.DataProvider.Name.Contains(ProviderName.Firebird)) { FirebirdTools.ClearAllPools(); } DataContext.Close(); FirebirdTools.ClearAllPools(); base.Dispose(); }
public override void Dispose() { DataContext.Close(); FirebirdTools.ClearAllPools(); base.Dispose(); }