17 responses

  1. Chris’s Wedding Photography
    February 18, 2015

    You’ll say thanks to this particular assistance at a later time.

    You also have to prepare questions that are asked in the right way, nothing too offensive and nothing too personal.
    Contacting all the vendors hired is priority to avoid
    losing deposits.

  2. andalusiapropertyspain.com
    February 4, 2015

    Right here is the perfect web site for everyone who hopes to understand this topic.
    You know a whole lot its almost hard to argue with you (not that I actually would want to…HaHa).
    You certainly put a new spin on a subject that has been discussed for ages.
    Great stuff, just excellent!

  3. 2
    February 11, 2014

    Quality content is the secret to attract the viewers to
    pay a visit the web page, that’s what this website is providing.

  4. Anonymous
    June 16, 2013

    Greetings from Idaho! I’m bored to death at work so I decided to browse your blog on my iphone during lunch break. I really like the information you provide here and can’t wait to take
    a look when I get home. I’m amazed at how quick your blog loaded on my mobile .. I’m not even using WIFI, just 3G .
    . Anyways, amazing site!

    Also visit my blog … Rapid Opiate Detox (J

  5. Galaxy Note Video Review
    May 8, 2013

    Hello! This is my first visit to your blog! We are a team of
    volunteers and starting a new initiative in a community in the
    same niche. Your blog provided us valuable information to work on.
    You have done a wonderful job!

  6. Larry Q
    April 20, 2012

    Jesse’s right in his disclaimer about EF Code first and SQL CE changing since he first wrote this.

    I just built an ASP.Net MVC3 site and added the appropriate NuGet packages as he described, but no AppStart_SQLCEEntityFramework class was auto-generated. I had to do it by hand, using the file below as a template. I put the class file into my web’s root folder:


    In this case you’ll want to change the code from ‘MotorcycleContext’ to ‘PersonContext’, as well as change ‘DbDatabase’ to ‘Database’ since that class name changed after the CTP. In addition, change the ‘using System.Data.Entity.Database’ line at top to read ‘System.Data.Entity’, another post-CTP change.

    Strange, but I can’t download the sample code from Jon Galloway’s skydrive site– I can see the zip file but can’t download it. Skydrive doesn’t give any errors but the file won’t come down. I’ve tried it on a couple of different computers.

    • Larry Q
      April 20, 2012

      Some other changes since Jesse originally posted the article that you’ll need to be aware of:

      Calling DataSvcUtil.exe generates the ContractService.cs file as described, but make sure you add it to the windows phone project and not the ASP.Net MVC project– I made that mistake.

      Also, the Windows Phone project will need to have a reference added to the System.Data.Service.Client assembly in order to work with the ContractService.cs file.

      Finally, Microsoft changed the game with regard to the assembly name the DataServiceCollection class lives. It’s now in the System.Data.Service.Client assembly, and not System.Data.Service.Common, as in the MainPage.xaml.cs example code. See http://social.microsoft.com/Forums/is/crm/thread/0831be0c-64e8-4bd3-a473-7317e98271e7 for more info on that one.

      • Larry Q
        April 20, 2012

        I feel like a heel, with all these replies. My apologies but I forgot to add something to the post above.

        If you’re having trouble in the AppStart_SQLEntityFramework.cs file with the ‘|DataDirectory|’ value that is set by default in the AppDomain (I did– it pointed to a non-existent directory on my box) and can’t create the SQLCe database the first time through, you can change the value of that parameter in the Start() method of the class, before all the DefaultConnectionFactory stuff. Add this line at the top of the method and you should be good to go:

        AppDomain.CurrentDomain.SetData(“DataDirectory”, “>”);

        I learned about this from the following discussion:

  7. Raj
    February 7, 2012

    This is very big help!

  8. Jesse Liberty
    January 7, 2011

    Our next step in the Full Stack (after we make a video covering this material) is to apply these approaches to our full featured application. I’ll let you know .

    Full Stack: http://channel9.msdn.com/Series/The-Full-Stack

  9. Craig
    January 6, 2011

    Thanks Jesse,

    The stack gives me the warm fuzzies :)

    Any chance of a follow up of security and validation?

  10. jlafay
    January 6, 2011

    Great tutorial on EF, OData, and WP7. I’ve written a few OData services as samples and it seems TOO easy. Is the technology really that simple use in production code? I know that permissions and security needs to be considered when exposing OData. I’m just wondering if there are other powerful features to exploit that may be nestled away in a book or some tutorials somewhere.

Leave a Reply




Back to top
mobile desktop