locked
EF core Database first approach RRS feed

  • Question

  • User-154169686 posted

    Hi 

    I have an existing project with uses Entity framework (Database approach). We would like to migrate to Entity framework core and also would like to use DB migration. 

    any advice. I am new to EF core

    Tuesday, December 18, 2018 5:33 AM

All replies

  • User1120430333 posted

    Yes, you can use what is called EF DB First in Core.

    https://www.learnentityframeworkcore.com/walkthroughs/existing-database

    Myself, I'll never do a migration, which I don't consider database administration should be part of any ORM like EF or others.

    Tuesday, December 18, 2018 7:38 AM
  • User-154169686 posted

    Thank you for response. I don't understand below statement 

    Myself, I'll never do a migration, which I don't consider database administration should be part of any ORM like EF or others.

    Wednesday, December 19, 2018 12:05 AM
  • User1120430333 posted

    Thank you for response. I don't understand below statement 

    Myself, I'll never do a migration, which I don't consider database administration should be part of any ORM like EF or others.

     

    I am from the old school as a software developer when I was taught basic DBA skills concerning MS SQL Server and Oracle. So no, no ORM will ever be involved in database migrations for me. I cringe at the thought of any ORM doing DBA operations. If you talked with any fulltime DBA, they would cringe at the thought that an ORM is doing DBA operations.  The ORM(s) have gone too far,  and they should stick to ORM stuff and not doing DBA stuff, IMO.

    Wednesday, December 19, 2018 5:50 AM