Hello,
I know this is the genearl question but I didnot get solution.
I am getting the Arithmetic overflow error converting expression to data type int Exception in below line
ctx.Users.Where(un => un.CorporateEmail == username && un.Password == password).FirstOrDefault();
Can any one suggest me to get out of this?
Thanks.
VulpesPosted Mar 20, 2015, 8:49 AM
So what type of variable are you are actually assigning it to?
DhanasekarPosted Mar 20, 2015, 8:41 AM
Jignesh TrivediPosted Mar 20, 2015, 7:04 AM
Is there any calculated filed in User table...?
please provide definition of User table and also some example data...
Manish Kumar ChoudharyPosted Mar 20, 2015, 3:04 AM
No error in this conduction. Debug the code and find the error. There may be error in you class where you are storing this result set.
Debug the code and check the proper error.
Posted Mar 20, 2015, 2:57 AM
No int datatype.
Manish Kumar ChoudharyPosted Mar 20, 2015, 2:48 AM
Posted Mar 20, 2015, 2:37 AM
This above Exception.
Manish Kumar ChoudharyPosted Mar 20, 2015, 2:34 AM
Posted Mar 20, 2015, 2:32 AM
Manish Kumar ChoudharyPosted Mar 20, 2015, 2:04 AM
ctx.Users.Where(un => un.CorporateEmail .Equals("username") && un.Password. Equals("password")).FirstOrDefault();