Click or drag to resize

MySQLDatabaseFacadeExtensions Class

Inheritance Hierarchy
SystemObject
  MySql.Data.EntityFrameworkCore.ExtensionsMySQLDatabaseFacadeExtensions

Namespace:  MySql.Data.EntityFrameworkCore.Extensions
Assembly:  MySql.Data.EntityFrameworkCore (in MySql.Data.EntityFrameworkCore.dll) Version: 8.0.22
Syntax
public static class MySQLDatabaseFacadeExtensions

The MySQLDatabaseFacadeExtensions type exposes the following members.

Methods
  NameDescription
Public methodStatic memberIsMySql

Returns true if the database provider currently in use is the MySQL provider.

This method can only be used after the DbContext has been configured because it is only then that the provider is known. This means that this method cannot be used in OnConfiguring(DbContextOptionsBuilder) because this is where application code sets the provider to use as part of configuring the context.

Top
See Also