Browse by Tags
All Tags »
Entity Framework (
RSS)
Sorry, but there are no more tags available to filter with.
-
|
In Part 1 , I showed you the end-goal - the simple and easy way of using EF in a disconnected (n-tier) architecture. But how is it done? In this post we'll start diving into the ModelAccess<T> class, looking at the simple Get() and the DeleteEntity() methods. ModelAccess<T> Definition Let's have a look at the definition of ModelAccess<T>. public class ModelAccess where ContextType : ObjectContext, new() { ... } ModelAccess<T> is a generic class - the generic type T...
|
-
|
I love Entity Framework (EF) – it’s straightforward and lets me concentrate on code and business logic instead of SQL and stored procedures. However, there are some issues that need to be worked through if you’re going to use EF. Firstly, there are tons of examples of how to use EF if you’re building small apps that don’t require a service layer – connecting a grid directly to the model is almost trivial. What about n-tier patterns and practices? (Aside: I know there are tool such as RIA services...
|