vikas kanani

vikas kanani

  • 1.5k
  • 149
  • 111.9k

how to insert only unique records in database using LINQ

Mar 20 2013 7:55 AM
my question is i have two columns
1st is employeeid
2nd is employeename


employee id is primary key...

but i also want that employeename also unique..so how can i do on click of submit button.if employee name is match wid other colum..then message is display tht already exists..


i want thaat solution in LINQ


Answers (3)