Wrox Programmer Forums
|
BOOK: Beginning ASP.NET 4.5 : in C# and VB
This is the forum to discuss the Wrox book Beginning ASP.NET 4.5: in C# and VB by Imar Spaanjaars; ISBN: 978-1-118-31180-6
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning ASP.NET 4.5 : in C# and VB 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 June 16th, 2016, 10:22 AM
Registered User
 
Join Date: Jun 2016
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Question [Ch.14 Pg.503] Entity Framework model

Hi,

I'm having a bit of trouble completing the Try It Out that starts on Pg. 501 as when I get to step 10, I get the error message that the book warns me about (PlanetWroxEntities being out of scope), but I can't seem to fix it as even when I hand type Using PlanetWroxModel; nothing seems to work.

VS doesn't detect give the option of selecting "Using PlanetWroxModel;" or "PlanetWroxModel.PlanetWroxEntities" as shown in the Fig 14-3, I just get the bottom two options, "Generate class [...]" and "Generate new type..."

Any idea on how I can fix this?
 
Old June 17th, 2016, 08:33 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Hi Bassios,

Take a look at this thread that deals with the same topic: the book and problem with EF

Cheers,

Imar
__________________
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Follow me on Twitter

Author of Beginning ASP.NET 4.5 : in C# and VB, Beginning ASP.NET Web Pages with WebMatrix
and Beginning ASP.NET 4 : in C# and VB.
Did this post help you? Click the button below this post to show your appreciation!
 
Old June 17th, 2016, 11:45 AM
Registered User
 
Join Date: Jun 2016
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi Imar,

Thanks for your reply, unfortunately it doesn't help me as I have no idea what I need to search for on google to get the answer. If you could point me in the right direction, I'm happy to do the reading myself, I just don't know what the difference is between the book and how EF6 generates code.

Thanks
 
Old June 19th, 2016, 02:00 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

This might be a good start: https://www.google.com/?gws_rd=ssl#q...database+first

Many tutorials focus on MVC but you can use the web forms principles from my book to use it on Web Forms.

I would recommend sticking to EF5 to follow along with the book. Then when you get the hang of it you can switch to EF6 for your own projects.

Cheers,

Imar
__________________
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Follow me on Twitter

Author of Beginning ASP.NET 4.5 : in C# and VB, Beginning ASP.NET Web Pages with WebMatrix
and Beginning ASP.NET 4 : in C# and VB.
Did this post help you? Click the button below this post to show your appreciation!





Similar Threads
Thread Thread Starter Forum Replies Last Post
Chapter 14 Entity Framework trtyler BOOK: Beginning ASP.NET 4.5.1 : in C# and VB 3 April 11th, 2016 04:54 PM
Ch 14 generating entity model AlanWheeler BOOK: Beginning ASP.NET 4.5 : in C# and VB 2 April 30th, 2014 07:51 AM
Chapter 14: Entity Model Code WILL NOT WORK! pittfurg BOOK: Beginning ASP.NET 4 : in C# and VB 6 February 28th, 2013 07:48 AM
Trouble Creating Entity Framework Model floridaguy BOOK: Beginning ASP.NET 4 : in C# and VB 4 November 16th, 2011 02:56 PM
Chapter 14 - ADO.NET Entity Data Model Sean1980 BOOK: Beginning ASP.NET 4 : in C# and VB 3 July 15th, 2011 12:24 PM





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