c# - Can I use the Mono implementation of SqlClient in MS.Net framework 4.0? -


we testing options solve performance issues .net 4.0 sqlclient (lots of gc , finalizers, etc.) , thinking of using different sql client implementation - mono came mind.

1) possible use mono implementation of sqlclient ms.net application? if so- how?
2) mono implementation "stable"? version recommended?
3) mono implementation of sqlcommand, queryresults, etc. contain finalizers?

thanks!

if seeing these impact gc, suggests aren't using them properly. of these, sqldatareader doesn't have finalizer in first place, assume we're talking sqlcommand , sqlconnection. both of these inherit component, , in both cases dispose() call unregisters them gc - is:

public void dispose() {     this.dispose(true);     gc.suppressfinalize(this); } 

so: if setting these appear finalizers in gc, see whether disposing objects correctly. easiest way via using statements. example:

using(var conn = opensomeconnection()) using(var cmd = conn.createcommand()) {     // todo configure command      using(var reader = cmd.executereader()) {         // todo consume data     } } 

Comments

Popular posts from this blog

SPSS keyboard combination alters encoding -

Add new record to the table by click on the button in Microsoft Access -

CSS3 Transition to highlight new elements created in JQuery -