Skip to content Skip to sidebar Skip to footer

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 have created an object for dbml and send the values through it. But it shows some error, we can easy to identify the error while giving 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 passing the value directly, so we can find the data type mismatch. Compare to 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.

Post a Comment for "Eaiest way of debug the datatype mismatch in c#"