Wrox Programmer Forums
| 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 software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
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,
 
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!




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





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.