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.

Manish Kumar ChoudharyRank #339 · 7.4K reputationPosted Mar 19, 2015, 10:04 PM EDT
ctx.Users.Where(un => un.CorporateEmail .Equals("username") && un.Password. Equals("password")).FirstOrDefault();
Posted Mar 19, 2015, 10:32 PM EDT
Manish Kumar ChoudharyRank #339 · 7.4K reputationPosted Mar 19, 2015, 10:34 PM EDT
Posted Mar 19, 2015, 10:37 PM EDT
This above Exception.
Manish Kumar ChoudharyRank #339 · 7.4K reputationPosted Mar 19, 2015, 10:48 PM EDT
Posted Mar 19, 2015, 10:57 PM EDT
No int datatype.
Manish Kumar ChoudharyRank #339 · 7.4K reputationPosted Mar 19, 2015, 11:04 PM EDT
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.
Jignesh TrivediRank #16 · 50.3K reputationPosted Mar 20, 2015, 3:04 AM EDT
Is there any calculated filed in User table...?
please provide definition of User table and also some example data...
DhanasekarRank #3,343 · 430 reputationPosted Mar 20, 2015, 4:41 AM EDT
VulpesRank #55 · 29.2K reputationPosted Mar 20, 2015, 4:49 AM EDT
So what type of variable are you are actually assigning it to?