Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. Entity Framework and Classes

Entity Framework and Classes

Scheduled Pinned Locked Moved C#
questiondiscussion
4 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • N Offline
    N Offline
    nstk
    wrote on last edited by
    #1

    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.

    P B K 3 Replies Last reply
    0
    • N nstk

      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.

      P Offline
      P Offline
      Pete OHanlon
      wrote on last edited by
      #2

      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

      1 Reply Last reply
      0
      • N nstk

        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.

        B Offline
        B Offline
        BobJanova
        wrote on last edited by
        #3

        UML is useless anyway ;)

        1 Reply Last reply
        0
        • N nstk

          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.

          K Offline
          K Offline
          Keith Barrow
          wrote on last edited by
          #4

          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[^]

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups