Programming Entity Framework: DbContext

( 2 )

Overview

The DbContext API captures Entity Framework’s (EF) most commonly used features and tasks, simplifying development with EF. This concise book shows you how to use the API to perform set operations with the DbSet class, handle change tracking and resolve concurrency conflicts with the Change Tracker API, and validate changes to your data with the Validation API.

With DbContext, you’ll be able to query and update data, whether you’re working with individual objects or graphs of ...

See more details below
Other sellers (Paperback)
  • All (17) from $12.42   
  • New (12) from $15.29   
  • Used (5) from $12.42   
Programming Entity Framework: DbContext

Available on NOOK devices and apps  
  • NOOK Devices
  • Samsung Galaxy Tab 4 NOOK
  • NOOK HD/HD+ Tablet
  • NOOK
  • NOOK Color
  • NOOK Tablet
  • Tablet/Phone
  • NOOK for Windows 8 Tablet
  • NOOK for iOS
  • NOOK for Android
  • NOOK Kids for iPad
  • PC/Mac
  • NOOK for Windows 8
  • NOOK for PC
  • NOOK for Mac
  • NOOK for Web

Want a NOOK? Explore Now

NOOK Book (eBook)
$10.49
BN.com price
(Save 30%)$14.99 List Price

Overview

The DbContext API captures Entity Framework’s (EF) most commonly used features and tasks, simplifying development with EF. This concise book shows you how to use the API to perform set operations with the DbSet class, handle change tracking and resolve concurrency conflicts with the Change Tracker API, and validate changes to your data with the Validation API.

With DbContext, you’ll be able to query and update data, whether you’re working with individual objects or graphs of objects and their related data. You’ll find numerous C# code samples to help you get started. All you need is experience with Visual Studio and database management basics.

  • Use EF’s query capabilities to retrieve data, and use LINQ to sort and filter data
  • Learn how to add new data, and change and delete existing data
  • Use the Change Tracker API to access information EF keeps about the state of entity instances
  • Control change tracking information of entities in disconnected scenarios, including NTier applications
  • Validate data changes before they’re sent to the database, and set up validation rules
  • Bypass EF’s query pipeline and interact directly with the database
Read More Show Less

Product Details

  • ISBN-13: 9781449312961
  • Publisher: O'Reilly Media, Incorporated
  • Publication date: 3/8/2012
  • Edition number: 1
  • Pages: 258
  • Sales rank: 654,232
  • Product dimensions: 7.00 (w) x 9.10 (h) x 0.60 (d)

Meet the Author

Julia Lerman is the leading independent authority on the Entity Framework and has been using and teaching the technology since its inception in 2006. She is well known in the .NET community as a Microsoft MVP, ASPInsider, and INETA Speaker. Julia is a frequent presenter at technical conferences around the world and writes articles for many well-known technical publications including the Data Points column in MSDN Magazine.

Julia lives in Vermont with her husband, Rich, and gigantic dog, Sampson, where she runs the Vermont.NET User Group. You can read her blog at www.thedatafarm.com/blog and follow her on Twitter at julielerman.

Rowan is based in Seattle, Washington and works as a Program Manager for the ADO.Net Entity Framework team at Microsoft. Prior to moving to the US he resided in the small state of Tasmania in Australia. Rowan speaks at technical conferences and blogs at http://romiller.com. 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.

Read More Show Less

Table of Contents

Preface

Chapter 1: Introducing the DbContext API

Chapter 2: Querying with DbContext

Chapter 3: Adding, Changing, and Deleting Entities

Chapter 4: Working with Disconnected Entities Including N-Tier Applications

Chapter 5: Change Tracker API

Chapter 6: Validating with the Validation API

Chapter 7: Customizing Validations

Chapter 8: Using DbContext in Advanced Scenarios

Chapter 9: What’s Coming Next for Entity Framework

Read More Show Less

Customer Reviews

Average Rating 5
( 2 )
Rating Distribution

5 Star

(2)

4 Star

(0)

3 Star

(0)

2 Star

(0)

1 Star

(0)

Your Rating:

Your Name: Create a Pen Name or

Barnes & Noble.com Review Rules

Our reader reviews allow you to share your comments on titles you liked, or didn't, with others. By submitting an online review, you are representing to Barnes & Noble.com that all information contained in your review is original and accurate in all respects, and that the submission of such content by you and the posting of such content by Barnes & Noble.com does not and will not violate the rights of any third party. Please follow the rules below to help ensure that your review can be posted.

Reviews by Our Customers Under the Age of 13

We highly value and respect everyone's opinion concerning the titles we offer. However, we cannot allow persons under the age of 13 to have accounts at BN.com or to post customer reviews. Please see our Terms of Use for more details.

What to exclude from your review:

Please do not write about reviews, commentary, or information posted on the product page. If you see any errors in the information on the product page, please send us an email.

Reviews should not contain any of the following:

  • - HTML tags, profanity, obscenities, vulgarities, or comments that defame anyone
  • - Time-sensitive information such as tour dates, signings, lectures, etc.
  • - Single-word reviews. Other people will read your review to discover why you liked or didn't like the title. Be descriptive.
  • - Comments focusing on the author or that may ruin the ending for others
  • - Phone numbers, addresses, URLs
  • - Pricing and availability information or alternative ordering information
  • - Advertisements or commercial solicitation

Reminder:

  • - By submitting a review, you grant to Barnes & Noble.com and its sublicensees the royalty-free, perpetual, irrevocable right and license to use the review in accordance with the Barnes & Noble.com Terms of Use.
  • - Barnes & Noble.com reserves the right not to post any review -- particularly those that do not follow the terms and conditions of these Rules. Barnes & Noble.com also reserves the right to remove any review at any time without notice.
  • - See Terms of Use for other conditions and disclaimers.
Search for Products You'd Like to Recommend

Recommend other products that relate to your review. Just search for them below and share!

Create a Pen Name

Your Pen Name is your unique identity on BN.com. It will appear on the reviews you write and other website activities. Your Pen Name cannot be edited, changed or deleted once submitted.

 
Your Pen Name can be any combination of alphanumeric characters (plus - and _), and must be at least two characters long.

Continue Anonymously
Sort by: Showing all of 2 Customer Reviews
  • Anonymous

    Posted February 4, 2014

    What a page turner! Couldn¿t put it down! Yeah, ok that¿s the

    What a page turner!

    Couldn’t put it down! Yeah, ok that’s the kind of things you might hear about a good novel, but seriously the author has taken the deeply technical material and made it very interesting and relevant!

    The detailed handling of the capabilities of dbContext are superb and the examples used made it abundantly clear as to the best uses of the described features. I considered myself pretty knowledgeable with entity framework, but I found a great deal of new information stuffed into this relatively small book.

    The information in the first chapters of the book get the basic user up to speed, while still pointing out tips to the advanced users. Going from the most basic differences between the older methods of using data with the entity framework to the new object description can be helpful to those with experience in the previous versions. I like the trick of setting up the context in a using statement to help to dispose the object.

    The section on LINQ to entities as a good tutorial, but I wish there was a link to a reference on performance versus other methods of querying. Her description of the different methods of loading the object tree was very useful and can be of immediate benefit to most readers. The book illiterates the advantages and disadvantages of each technique in simple terms.

    How EF handled change tacking was a mystery to me, but she clarified the methods used and techniques to enhance performance in a clear manner with great examples.

    The coverage of data validations was likewise technical but written in a very understandable way. The techniques found here will save me time and effort in the future.

    I had been looking for details of how to use the entity framework and dbContext in a disconnected and multi-tier environment and it was covered pretty well in this book although, I would have liked to see more than a couple of paragraphs on WCF Data services in a multi-tier environment.

    I would highly recommend this book for anyone from novice to expert in the use of EF.

    Was this review helpful? Yes  No   Report this review
  • Posted May 7, 2012

    Best Book on DbContext

    Julia Lerman is one of my go to people when it comes to Entity Framework. Between her several books, blogs and videos, she is one of the main sources for Entity Framework information. Julia and Rowan writing style is easy to understand. The book is full of code examples without over doing it. The book is only a couple hundred pages, but covers the topic very well. DbContext is only a part of Entity Framework, but an important part. Understanding it will make using Entity Framework much easier and make the developer much more productive. Just understanding the differences between Lazy Loading, Eager Loading, Explicit Loading and understanding when your queries are querying against the database or local memory is worth getting the book. The authors have other books on programming Entity Framework, but this is the most in-depth book covering DbContext. Not the first place to learn about Entity Framework, but when it comes to DbContext, at the moment, there is nothing better.

    Was this review helpful? Yes  No   Report this review
Sort by: Showing all of 2 Customer Reviews

If you find inappropriate content, please report it to Barnes & Noble
Why is this product inappropriate?
Comments (optional)