To check if a record already exists in a table, you can try the following:
if (context.YourTableName.Any(u => u.YourColumnName == YourTextMatch)) { // Record found } else { // Record not found }
To check if a record already exists in a table, you can try the following:
if (context.YourTableName.Any(u => u.YourColumnName == YourTextMatch)) { // Record found } else { // Record not found }