Browse by Tags
All Tags »
Architecture »
ADO.NET (
RSS)
Building N-Tier Applications with Entity Framework 4 Slide Deck I just finished my session in Teched Israel 2010. The subject was building N-Tier applications with Entity Framework . I want to thank all the attendees who joined me at this morning after yesterday’s party. The subjects that I covered are how to build N-Tier applications on top of Entity Framework in three different approaches – Self-Tracking Entities, Data Transfer Objects and POCO. If you are interested you can download the slide...
Eager Loading with Repository Pattern and Entity Framework One question that I received yesterday after I published the Revisiting the Repository and Unit of Work Patterns with Entity Framework post was how to include the eager loading ability of Entity Framework . This post is offering a solution. Revisiting Eager Loading and Lazy Loading Lazy loading is a design pattern that is commonly used to defer initialization of an object up until it is needed by the program. The gains of using the pattern...
Revisiting the Repository and Unit of Work Patterns with Entity Framework In the past I wrote two posts about the Repository and the Unit of Work patterns ( here and here ). Today I want to show a better and less naive solution for imposing the Unit of Work and the Repository patterns with Entity Framework . Revisiting The Repositoy Implementation In the Repository pattern, I added to the interface two new methods for adding and removing an entity: public interface IRepository<T> where T :...
Using Unit of Work Pattern with Entity Framework In a previous post I explained how to create a simple repository on top of Entity Framework . In this post I’ll explain the Unit of Work pattern and how we can use it with our data access layer. What is Unit of Work Pattern? In his famous and developer must read book “ Patterns of Enterprise Application Architecture ”, Martin Fowler defines the Unit of Work as “Maintains a list of objects affected by a business transaction and coordinates the writing...
Table Per Type Inheritance in Entity Framework The first inheritance mapping I’m going to show is called Table Per Type or TPT . Before I start with the example lets define what is TPT . Table Per Type Definition TPT is an inheritance described in the database with separate tables. Every table provides additional details that describe a new type based on another table which is that table’s parent. In the following database ERD the OnlineCourse table is a concrete type of Course: As you can see the...
Using Repository Pattern with Entity Framework One of the tools for reaching for persistence ignorance is to build a facade between the data access layer and your business logic. Such facade will prevent the knowledge of how the data access is working and with which technology. That abstraction can be achieved by using the Repository Pattern . In the post I’ll show how you can use the Repository Pattern in order to make an abstraction layer on top of Entity Framework . The Repository Interface When...
My Next Month Courses Schedule Next month I’m scheduled for the following courses: ADO.NET Entity Framework Scheduled for 16.6 Advanced ASP.NET 3.5 Scheduled for 14.6 Design Patterns Scheduled for 11.6 If you want to participate in one of those courses or more details, you can contact E4D in the following ways: Contact Form in the this link Call Michal - 054-5612259 Call Oranit - 03-6325707 See you there.
ADO.NET Data Services Introduction Introduction From the early ages of development, the separation of presentation and data was very necessary and was considered (and is considered) a good practice. As you all know, the current trend in the web development world is building Rich Internet Applications ( RIA ) and buzz words like Ajax and Silverlight are very popular today. The RIA technologies ( Ajax , Silverlight and etc) are built on the concept of separation between the presentation and data in...
In the post I introduce the entity framework....