ASP.NET Monsters #48: Configuring Entity Framework

Play ASP.NET Monsters #48: Configuring Entity Framework

The Discussion

  • User profile image
    Alex219267

    Anyway I can place entity framework core in a class library file? Then reference it in other front end projects like Asp.net or others.

  • User profile image
    David​Paquette

    @Alex219267: Yeah for sure you can put your EF Core bits in a class library and reference that library in other projects. The only problem with that right now is that the EF migrations tool doesn't work with class libraries. I hope that issue is fixed soon.

  • User profile image
    Thiago Menezes

    There's a workaround to EF migrations tool work with class libraries.
    Just creating a static void Main method in a class.
    Look at this: http://benjii.me/2016/06/entity-framework-core-migrations-for-class-library-projects/

Conversation locked

This conversation has been locked by the site admins. No new comments can be made.