Quantcast
Channel: Windows Presentation Foundation (WPF) forum
Viewing all articles
Browse latest Browse all 18858

How to detect duplicate data that is not a primary key

$
0
0

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.




Viewing all articles
Browse latest Browse all 18858

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>