Why to use fluentmigrator?
Asked Answered
G

3

3

When and why to use FluentMigrator as Entity Framework Code-First Migration does the same job.

The two appear to be very similar, what problem or flaw does FluentMigrator solve when EF already provides classes to manipulate the database schema.

I am not clear why and when(in which cases) to use fluentmigrator?

Grating answered 17/6, 2017 at 10:0 Comment(0)
M
2

Not everybody uses Entity Framework. I don't use it in my current project for example. In this scenario FluentMigrator is very useful for managing the database changes for each release.

Mycenae answered 8/8, 2017 at 10:22 Comment(0)
E
1

EntityFramework kind of gives you both tasks: ORM and migration (CodeFirst).

I, for instance, use NHibernate and use FluentMigrator. The first as ORM and the second as the database migration library. You could say indeed that I am writing two faces of the same concept so it is more maintenance costs, however, I prefer higher control over this (ORM and migration separately) because you could screw up very easily if it's not explicit up front.

Envelope answered 21/8, 2018 at 4:32 Comment(0)
E
1

Adding to the examples above: in case you use some Micro ORM like Dapper, you'll need a separate tool for database migrations. That's what Fluent Migrator is all about.

Ebbarta answered 5/6, 2019 at 8:23 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.