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.
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!
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…
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
Tim – p.s. I’m surprised I didn’t think to put a caveat about this anywhere 🙁
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?
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! 🙂
Yes I’m publishing it, Tim. 🙂 LOL
Tim, how soon do you need to go to production?
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.
I ask because IIRC VS11 beta will be available next week with a go live license. So you should be able start using EF 4.3 (including dbcontext) with .NET 4.5 (the built in query caching)
blogs.msdn.com/…/the-road-to-vis
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?
@Anthony, best to ask the team about that one …blogs.msdn.com/adonet. ("feature 4.3 bugs" …LOL)
Julie, are you planning for this book to be part of the safari subscription at O’Reilly?
@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.
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.
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!!! =)
Hi Julie,
This is really interesting Book , Congratulations Julie and I think I’ll buy it inshaa Allah.
Thanks 🙂