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: Professional ADO.NET 3.5 with LINQ and the Entity Framework ISBN: 978-0-470-22988-0
This is the forum to discuss the Wrox book Professional ADO.NET 3.5 with LINQ and the Entity Framework by Roger Jennings; ISBN: 9780470182611
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Professional ADO.NET 3.5 with LINQ and the Entity Framework ISBN: 978-0-470-22988-0 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 April 13th, 2009, 09:13 AM
Registered User
 
Join Date: Sep 2008
Location: Melbourne, FL, USA.
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Creating a DataContext

This might be the wrong place to ask this, but I'll give it a try. If this is the wrong place, could you please point me to a more correct forum?

I'm creating a VB.NET2008 LINQ Demo project. I added a copy of Northwind.sdf and renamed it as Demo.sdf and it contains just a few records from the Employees table. I used the SQL Metal OSUI to create the Demo.dbml and added it to the project. In the form code I want to add a DataContext something like:

Private DC as new DemoDataContext

But intellisense doesn't show any thing with DataContext in it.

Thanks,
  #2 (permalink)  
Old April 14th, 2009, 02:11 PM
Registered User
 
Join Date: Sep 2008
Location: Melbourne, FL, USA.
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by Schildb View Post
This might be the wrong place to ask this, but I'll give it a try. If this is the wrong place, could you please point me to a more correct forum?

I'm creating a VB.NET2008 LINQ Demo project. I added a copy of Northwind.sdf and renamed it as Demo.sdf and it contains just a few records from the Employees table. I used the SQL Metal OSUI to create the Demo.dbml and added it to the project. In the form code I want to add a DataContext something like:

Private DC as new DemoDataContext

But intellisense doesn't show any thing with DataContext in it.

Thanks,
I see what I problem was. I was getting the correct DataContext, but could not get the my code based on the examples on pages 32 and 33 to work. I saw the corrections on this forum and when I made them all worked well.

Sorry for the post!
 


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
Dynamic DataContext? softwarea BOOK: ASP.NET 3.5 Enterprise Application Development with Visual Studio 2008: Problem Design Solutio 8 June 1st, 2009 01:04 PM
creating toolbars ozPATT Excel VBA 1 October 23rd, 2005 02:52 AM
creating com control ojemuyiwa Classic ASP Components 0 August 31st, 2005 05:17 AM
Creating a forum mwas General .NET 3 October 12th, 2004 11:30 PM



All times are GMT -4. The time now is 09:59 PM.


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