Entity Framework and Classes
-
As I understand it, in Entity Framework we create the backend from which the classes for our frontend code derive. Does this mean that we don't need any thoughts about classes building anymore? Doesn't this make at least a part of OOP thinking and of UML useless? Thanks.
-
As I understand it, in Entity Framework we create the backend from which the classes for our frontend code derive. Does this mean that we don't need any thoughts about classes building anymore? Doesn't this make at least a part of OOP thinking and of UML useless? Thanks.
Err, no. The Entity Framework encapsulates the data access. It doesn't say anything about how your business logic and UI will look, or how those classes will be implemented.
*pre-emptive celebratory nipple tassle jiggle* - Sean Ewington
"Mind bleach! Send me mind bleach!" - Nagy Vilmos
My blog | My articles | MoXAML PowerToys | Mole 2010 - debugging made easier - my favourite utility
-
As I understand it, in Entity Framework we create the backend from which the classes for our frontend code derive. Does this mean that we don't need any thoughts about classes building anymore? Doesn't this make at least a part of OOP thinking and of UML useless? Thanks.
-
As I understand it, in Entity Framework we create the backend from which the classes for our frontend code derive. Does this mean that we don't need any thoughts about classes building anymore? Doesn't this make at least a part of OOP thinking and of UML useless? Thanks.
nstk wrote:
, in Entity Framework we create the backend from which the classes for our frontend code derive
Not necessarily: it is possible to start with the object model and generate the database tables from it.
nstk wrote:
Does this mean that we don't need any thoughts about classes building anymore? Doesn't this make at least a part of OOP thinking and of UML useless?
We still need to think about the OO design: the Entity Classes are still classes and still need to be designed properly. All the EF does is handle how the object it stored. It is also perfectly possible to write OO code without UML, even so the classes generated can be described in UML, otherwise there is something seriously wrong with the framework.
Sort of a cross between Lawrence of Arabia and Dilbert.[^]
-Or-
A Dead ringer for Kate Winslett[^]