Eaiest way of debug the datatype mismatch in c#

     Consider one situation I need to pass some data to sql using linq to sql, so I am created and object for dbml and send the values through it. But it show some error, we can easy to identify the error while give the value directly to the method, so we can find the data type mismatch error.



Parameter error in c#



     In the following image we are pass the value directly, so we can find the data type mismatch. Compare to the both image third variable is wrong.

     In the following image we are pass the value directly, so we can find the data type mismatch. Compare to the both image third variable is wrong.

0 nhận xét:

Đăng nhận xét