4 responses

  1. havok231
    August 7, 2013

    “In many respects, code first is the least useful workflow for large development teams because the lack of automation can produce consistency errors across groups.” You’re dumb

    • HarveyKandola
      August 8, 2013

      In many respects you have to ask why large development teams have an application that does not already have model/entity classes !

      Surely, most Developers leverage some sort of good design approach where the application is sensibly layered with appropriate design patterns.

      Granted legacy applications could be different where you have to put a new UI (e.g. ASP.NET MVC) on top of a legacy database.

      We have been using NHibernate in a commercial product for years and have never used any sort of Designer — “code first” all the way.

  2. Dave
    July 1, 2014

    Bottom line is all 3 approaches should be TOTALLY interchangeable though you may not do everything in every approach, but then if you could do that you would not need 3 approaches. But you MUST be able to flip between any of these 3 modes, and have the changes reflected in all 3 paradigms – the database, the models, the diagram w/ associations etc. Model First “Generate Database from Model” actually changes the .edmx file changing views and sprocs into tables. And Database First does not follow the Model First conventions. Iow, it don’t round trip! You should be able to change the classes, and have it reflected in the diagram and database, change the diagram and have it reflected in the classes and database, and import specific changes from the database and have it [correclty and according to Code First and Model First standards] update the diagram and classes. Etc. Etc. That said, it seems MSFT has pretty much abandoned Model First and Database First for the shiny new Code First object which was not very good when EF first started out, causing many of us free to design a correct database, chose Model First, which has many great benefits, especially if you relate to diagrams of your system. I like that part…

Leave a Reply




Back to top
mobile desktop