Home > LINQ, technology > LINQ – Update Row – Primary Key

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.

Share and Enjoy:
  • Digg
  • Facebook
  • del.icio.us
  • Print this article!
  • E-mail this story to a friend!
  • Google
  • description
  • description
  • Live
  • MySpace
  • Reddit
  • StumbleUpon
  • Technorati
  • Tumblr

LINQ, technology

  1. No comments yet.
  1. No trackbacks yet.