I have a situation where a table represented by EF (database-first) contains a primary key and another field that can be left blank but cannot be duplicated. How do I validate that non-primary key field to make sure it is not a duplicate?
Coming from an Access background, I would do something like a DLookup on the table to see if it exists.
Thanks.