An outlet for my obsession with technology
LINQ – Update Row – Primary Key
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.
No related posts.
| Print article | This entry was posted by Eric Polerecky on August 5, 2008 at 2:43 pm, and is filed under LINQ, technology. Follow any responses to this post through RSS 2.0. You can leave a response or trackback from your own site. |