DbContext Book is Online!

The digital version of Programming Entity Framework: DbContext is now available directly from O’Reilly Media at http://shop.oreilly.com/product/0636920022237.do.

This was a nice surprise since production only sent the final manuscript to the print production department yesterday. Smile

The print version might be another week or so.

Amazon will most likely have the kindle version available sooner than they are able to ship printed copies.

  Sign up for my newsletter so you don't miss my conference & Pluralsight course announcements!  

16 thoughts on “DbContext Book is Online!

  1. Julie,

    Congratulations! Just read this post and bought your book as a result. It looks helpful and concise.

    One point I’m still confused on: in the book, you wrote that we could wrap the "more advanced features" of the ObjectContext by casting the DbContext instance to the IObjectContextAdapter. (page 204)

    If I’m primarily using a DBContext, could I use this technique to access the ObjectContext and create compiled queries? I don’t know why I couldn’t, except your comments in your post on "EF4 books and EF 4.1" seem to indicate it may not be possible.

    I’m guessing I’ve misunderstood…

  2. Hi Tim…

    I had the same thought last year. It just can’t be done. I tried every trick I could think of and finally got confimration from the team. BUT when .NET 4.5 comes out along with EF5,we don’t need to use compiled queries any more …they’ll be cached automatically. Check out this new blog post from the team: blogs.msdn.com/…/sneak-preview-e

  3. Julie, thanks so much for the prompt reply.

    Believe it or not, I’m actually sitting here working on relatively small enterprise project, and trying to decide whether I should use DBContext or not.

    Any recommendation for those who want to use the DBContext API but would also like to use compiled queries? I’m assuming that creating both a DBContext and an ObjectContext is probably too resource intensive to be practical. I’m guessing I just have to pick…which means an enterprise application should go with the ObjectContext?

  4. Don’t publish this:

    Julie, in the post above, your sentence reads: "The was a nice surprise" instead of "THIS was a nice surprise."

    You know you won’t be able to sleep tonight unless you fix it! 🙂

  5. Hopefully I’d go into production in early summer. It’s a free-time project, and I have considerable free time over the next few weeks. So I’ve got to write the code now while I have the time.

    I’m thinking I’m just going to have to live with the ObjectContext, pending your recommendation.

  6. Julie, so EF 5.0 Beta in .NET 4.5 Beta on wsdy, will actually feature EF 4.3 features? Will it feature 4.3 bugs or will include 4.3.1 fix that has been announced?

  7. @Ben: I’m sure they’ll add it. That’s an OReilly plan, though , not a Julie plan. I’m just the writer. 😉 They can turn around the digital really quickly which is why that’s already available. Preparing it for print, safari, Amazon etc. takes longer.

  8. Julie, thanks for your answer above. I’ll use the DBContext and upgrade the app to 4.5, where I trust I’ll be able to take advantage of caching.

    Thanks for your contribution to the community.

  9. Julie I just want to express my sincere appreciation for all the wonderful EF content that you have shared through your books and wonderful videos on Pluralsight. THANK YOU THANK YOU THANK YOU. I just purchased the KINDLE version Programming Entity Framework: DBContext HAPPY DAYS!!! =)

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.