Using the Entity Framework in N-Tier Applications
Not all applications can be neatly bundled into a single process (that is, reside on a single physical server). In fact, in this ever-increasingly networked world, many application architectures support the classic logical layers of presentation, application, and data and also are physically deployed across multiple computers. While logically layering an application on a single computer can be accommodated in a single Application Domain without much concern for proxies, marshalling, serialization, and network protocols, applications that span from something as small as a mobile device to an enterprise application server found in a data center need to take all of these considerations into account. Fortunately, the Entity Framework together with technologies like Microsoft’s Windows Communication Foundation, or the Microsoft Web API framework, are well suited for these types of n-Tier applications.