Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
BOOK: ASP.NET 3.5 Enterprise Application Development with Visual Studio 2008: Problem Design Solutio
This is the forum to discuss the Wrox book ASP.NET 3.5 Enterprise Application Development with Visual Studio 2008: Problem Design Solution by Vincent Varallo; ISBN: 9780470396865
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: ASP.NET 3.5 Enterprise Application Development with Visual Studio 2008: Problem Design Solutio section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developersí questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
 
 
Thread Tools Display Modes
  #1 (permalink)  
Old July 14th, 2013, 03:11 AM
Registered User
Points: 8, Level: 1
Points: 8, Level: 1 Points: 8, Level: 1 Points: 8, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jul 2013
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Chapter 2 Adding a Record

Ok, I give up, I know it's me and not the code, here's my error:
//Save the changes to the database
db.SubmitChanges();
Error Description:
"V2.PaidTimeOffDAL.HRPaidTimeOffDataContext' does not contain a definition for 'SubmitChanges' and no extension method 'SubmitChanges' accepting a first argument of type 'V2.PaidTimeOffDAL.HRPaidTimeOffDataContext' could be found (are you missing a using directive or an assembly reference?)"

I have added the following reference:
using.System.Linq;
using.Data.
using V2.PaidTimeOffDAL

Thanks for your help guys. I'm just starting my journey.
  #2 (permalink)  
Old July 14th, 2013, 03:34 PM
Registered User
Points: 8, Level: 1
Points: 8, Level: 1 Points: 8, Level: 1 Points: 8, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jul 2013
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

45 people viewed my posted problem, neither have a solution.. anyways I was able to figured out the problem, I needed to add this reference to my web.config file.
<add assembly="System.Data.Linq, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>

I know this is an advanced book, however the author made a good job of explaining most of the details clear.
 


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
adding a new record to a table tomla75 BOOK: Beginning ASP.NET 4 : in C# and VB 1 March 24th, 2012 02:43 PM
Adding record to database? werD420 Classic ASP Databases 5 January 20th, 2005 06:27 PM
Adding a new record to a dataset Louisa VB.NET 2002/2003 Basics 1 January 14th, 2004 05:33 PM
trouble adding new record TnTandyO Classic ASP Databases 1 November 4th, 2003 02:20 PM
Adding a record using a form cailos Access 2 October 13th, 2003 12:10 AM



All times are GMT -4. The time now is 12:36 AM.


Powered by vBulletin®
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.