|
|
Hi I am starting with VB Web Express 2012 - only worked with VB6 before (& SQL db) I don't find "ASP.NET Web Application template" - only empty Web site, Web Forms site, same with Razor and Dynamic Entities . . . I have tried them all and yet I cannot find NavigationMenu even searching through each project? Also I installed SQLExpress 2005, but when I clicked on the AppData, it returned an error message saying that I needed to make a new connection? Any ideas? Regards Tony
The tutorial was written for VS 2010 and EF 4.0. VS 2012 has different templates and uses EF 5 by default.
Hi Tom Eventually (!) I removed 2012 and installed 2010 . . . and it all works perfectly! :) Thanks so much A question from tutorial 10 - Earlier you created a student statistics grid for the About page that showed the number of students for each enrollment date. The code that does this in HomeController.cs uses LINQ: var data = from student in db.Students group student by student.Enrollm entDate into dateGroup select new EnrollmentDateG roup() { EnrollmentDate = dateGroup.Key, StudentCount = dateGroup.Count () }; How does this still work when the Students table is no longer there, having been replaced by the Persons table?
and looking at the difference between LINQ and SQL, does LINQ have significant benefits? (I ask only in that I am familiar with SQL queries) pitters
On the value of LINQ, see this MSDN page: http://msdn.microsoft.com/en-u s/library/ms178 359.aspx#linq In the earlier tutorial, Code First maps the Student entity to the Student table. In the later tutorial, the Student entity has been changed so that it derives from the Person entity, and from this Code First knows to look in the Person table for student data. Your code can remain the same, but EF looks in different database tables for the data depending on how the entity is configured.
Is it not possible to load this application in VS Express edition, please help, thanks
The application does work in Visual Web Developer Express. Make sure you have service pack 1 installed.