c# - Linq2SQL InfoMessage -


Is it possible to access InfoMessage event handlers in the Linq2SQL data reference? All of our codes use these messages to display useful information to the end user and after going to Linq2SQL, I can not figure out how these messages will be displayed. I have not seen any fate of the properties of the classes as well as the connection objects of the data reference, so I am thinking that this is possible.

Thanks in advance.

You only need to enter the reference code in SqlConnection and then your Interesting to regulate the information message:

  yourdataContax ctx = new yourdatacontact (); SqlConnection con = (SqlConnection as cufe.Connection); If (con! = Null) {con.InfoMessage + = New SqlInfoMessageEventHandler (con_InfoMessage); }  

and then apply SqlInfoMessageEventHandler to your code.


Comments

Popular posts from this blog

windows - Heroku throws SQLITE3 Read only exception -

lex - Building a lexical Analyzer in Java -

python - rename keys in a dictionary -