linq to update table RRS feed

  • Question

  • In a C# 2010 application I would like to be able to use linq instead of sql to update from to 1 to 6 specific columns in a table that is stored in  sql server 2008 r2 database. I am asking that question since I know linq is the preferred method over using sql.
    I do know what the key to the table is.

    Thus can use tell me how to acdcomplish this goal?

    Friday, June 22, 2012 1:53 PM


  • Hi scamper_cat;

    To your question, "Thus can use tell me how to acdcomplish this goal?", I have posted in one of your previous questions Linq 2010 the answer you are asking here again. Please go to that link and read the post on setting up your Linq to SQL data context. Once you have set that up then ask a question on what tables you wish to query and what columns you want returned from the query, giving table names and columns names.


    Fernando (MCSD)

    If a post answers your question, please click "Mark As Answer" on that post and "Mark as Helpful".

    Saturday, June 23, 2012 1:20 PM