Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

how to check if data already exists in database in c# mvc

 private bool UserExists(string id)
        {
            return _context.Users.Any(e => e.UserId == id);
        }
 
PREVIOUS NEXT
Tagged: #check #data #exists #database #mvc
ADD COMMENT
Topic
Name
4+4 =