Chapter 8. Improving Entity Framework with Complex Business Scenarios

In this chapter, we will cover the following recipes:

  • Handling soft delete
  • Implementing refreshing data on save
  • Capturing the audit data
  • Improving MVC 3 applications

Introduction

Sometimes, we walk a fine line when learning a new technology. We need an example set to be simple enough to grasp the issue, but we still need an understanding of more complex scenarios. We are going to be walking through these kinds of scenarios together.

There are many ways to solve problems in programming, and we all know that there are pros and cons to each way. We will cover the ways that experience and production failures have taught us, so we can benefit from the shared experience. This objective will be covered in this chapter.

No project has a perfect domain, design, or implementation. We have all the written legacy code that we don't like, or have seen things that we would like to do better. This is where you get into some of the more complex business scenarios. How do we handle soft delete? How do we maximize data freshness? How do we seamlessly add auditable data to our objects? How does it all fit together? Let us move forward, and answer these questions together with the Entity Framework.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset