how to insert only unique records in database using LINQ
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