FastReport icon indicating copy to clipboard operation
FastReport copied to clipboard

Strange implementation of closing a connection

Open RedKot73 opened this issue 5 years ago • 1 comments

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?

RedKot73 avatar Mar 03 '21 08:03 RedKot73

From the point of view of architecture, this is true, if you want to offer your solution, send us a pull request.

alexsherkhan avatar Dec 12 '22 11:12 alexsherkhan