Hello,
I'm having a random problem that appears to be with Npgsql. Fairly often, when running code that accesses a db on a remote server, I get the error "The connection has been broken." When I'm running through Npgsql directly I've found the solution to be to "ClearPool" before opening the connection. I found this after researching errors with Npgsql. And, it works. However, when I'm using ES and I need to change the connection string I'm not aware of any way that I can force ES to do the same thing. Perhaps there is and I'm missing it? Has anyone else had this problem?
Also, I'm not sure whether you planned it this way or not but I can change the ConnectionString each time before I do a Query. This allows me to check the same table on both the remote server and the local machine using the same instance of the table object. This is (at least for me - I came from the 8080 / 64k days so I hate to take any more memory then I have to) spectacular! Is there any reason I shouldn't do this?
Thank you for your help! Great product!
Phil Mickelson