Welcome to Dream.In.Code
Getting C# Help is Easy!

Join 117,541 C# Programmers for FREE! Ask your question and get quick answers from experts. There are 1,692 online right now! We've got more than 500 tutorials and 2,000 snippets. Join and find out why Dream.In.Code is the #1 programming help community on the internet! Registration is fast and FREE... Join Now!



Updating LINQ record

 
Reply to this topicStart new topic

Updating LINQ record

Sarita Tejapu
post 9 Jul, 2008 - 06:33 AM
Post #1


New D.I.C Head

*
Joined: 9 Jul, 2008
Posts: 1

CODE

CompanyDetail companyDetail= dc().CompanyDetail.First(c => c.companyName == updatedCompanyDetail.companyName);
            companyDetail=updatedCompanyDetail;
            dc().SubmitChanges();




I am updating a record of table called companyDetails,where my primary key is companyname. Changes are not submitting.

Please help me as i m just a begginer in C# LINQ.
User is offlineProfile CardPM

Go to the top of the page

Fast ReplyReply to this topicStart new topic
Time is now: 10/7/08 05:23PM

Live C# Help!

C# Tutorials

Reference Sheets

C# Snippets

Bye Bye Ads

Free DIC T-Shirt

T-Shirt Example

Related Sites

Monthly Drawing

Thumb Drive

Partners

Top Contributors

Top 10 Kudos This Month