validate duplication in EF

  • Thread starter Thread starter zleug
  • Start date Start date
Z

zleug

Guest
Hi All.

My WPF form adds record to SQL database using SP with multiple parameters. In this project I'm using EF Code First with existing database. All fields in the form are required. The user must enter fields such as:
1. EmpId
2. First Name
3. Last Name
4. Email

I would like to validate for duplication EmpId field on LostFucus event if same value exist in database. How it to do if is it possible?

Thanks.

Continue reading...
 
Back
Top