Tevya
Tevya

Reputation: 864

How does a migration discover the database type in Fluent Migrator?

Using Fluent Migrator, how does a Migration class method discover the nature of the database being migrated? I need to know whether it is SQLite or something else.

I know there is a legacy class called MigratorDotNetMigration but I do not want to give up the power of Fluent Migrator--and this is not a legacy migration I am working on.

Upvotes: 0

Views: 297

Answers (1)

Tevya
Tevya

Reputation: 864

I found the solution here. It is based on IsDatabase().

Upvotes: 1

Related Questions