FastReport
FastReport copied to clipboard
Strange implementation of closing a connection
The file ... \ FastReport.Base \ Data \ DataConnectionBase.cs contains a method:
public void DisposeConnection (DbConnection connection)
{
if (ShouldNotDispose (connection)) // ???
return;
the ShouldNotDispose method is described in the base class as:
private bool ShouldNotDispose (DbConnection connection)
{
return false;
}
thus, it is impossible to change this behavior in the descendants and this leads to a permanent reopening of the connection.
Why is this done?
From the point of view of architecture, this is true, if you want to offer your solution, send us a pull request.