LINQ – Update Row – Primary Key
August 5th, 2008
LINQ requires all tables that you work with to have a PK. If you don’t have a PK on a table you can use the designer to set a PK on the generated code. This won’t effect your database.
- In Visual Studio open the LINQ Designer.
- Select a row you would like as your PK and select properties.
- Update the “Primary Key” Property.













