//build/ 2012 Talk Video and Source Code

Posted on November 20, 2012. Filed under: Entity Framework, Visual Studio | Tags: , , , , , |

BuildSession

This year at the //build/ conference I presented a session titled ‘Building data centric applications for web, desktop and mobile using EF5’. In addition to EF5, I also covered the what and when of EF6 and did a quick demo of my favorite EF6 feature (custom code first conventions).

You can view the session recording, and download it in various formats, from the //build/ website.

 

The majority of the session was spent coding in Visual Studio. During the session I built a Park Finder application starting from File –> New Project.

ParkFinder

 

Source Code

I’ve published the source code for the Web and Desktop projects that I built during the session.

ParkFinder.Web

To use the Park Finder web page you will need to get your own Bing Maps key and enter it on line 10 of Views\Home\Index.cshtml.

I’ve added the following line to Global.asax so that the migrations will be automatically applied when you run the application. This means you don’t have to worry about running Update-Database to create the database schema before running the application, although you can if you want.

Database.SetInitializer(new MigrateDatabaseToLatestVersion<ParkFinderContext, Configuration>());

ParkFinder.Desktop

You will need to be using Windows 8 to use this solution (because it’s a Windows 8 application).

Make sure you have the Bing Maps SDK for Windows Store apps installed.

The ParkFinder.Web project must have been run so that the Park Finder Web API is running.

You will need to get your own Bing Maps key and enter it on:

  • Line 34 of MainPage.xaml
  • Line 57 of MainPage.xaml.cs

Make a Comment

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

    About

    Rowan works as a Program Manager for the ADO.NET Entity Framework team at Microsoft. He speaks at technical conferences and blogs at romiller.com. Rowan lives in Seattle, Washington with his wife Athalie. Prior to moving to the US he resided in the small state of Tasmania in Australia. Outside of technology Rowan's passions include snowboarding, mountain biking, horse riding, rock climbing and pretty much anything else that involves being active. The primary focus of his life, however, is to follow Jesus.

    RSS

    Subscribe Via RSS

    • Subscribe with Bloglines
    • Add your feed to Newsburst from CNET News.com
    • Subscribe in Google Reader
    • Add to My Yahoo!
    • Subscribe in NewsGator Online
    • The latest comments to all posts in RSS

    Meta

Liked it here?
Why not try sites on the blogroll...

%d bloggers like this: