sankeerth m

sankeerth m

  • NA
  • 484
  • 23.9k

LINQ unable to update Record. it is

Apr 26 2021 11:48 AM
var exist = db.Registration.FirstOrDefault(x => x.MOBILENUMBER == mobilenumber && x.EMAIL == email );
return exist;
 
 
while updating the record i need to check mobilenumbaer and email. with same id.  unable to update please help me out.
  ex : id =280 mnumber :9876545 name:David
         id =281 mnumber:890765    name:johnson
updating id=280  if i update name it is not getting updated it saying mobile number already exist.

Answers (5)