Show / Hide Table of Contents

Class DatabaseFacadeExtensions

Extension methods to determine the type of database used.

Inheritance
Object
DatabaseFacadeExtensions
Inherited Members
Object.Equals(Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: IRM.EntityFrameworkCore
Assembly: IRM.EntityFrameworkCore.dll
Syntax
public static class DatabaseFacadeExtensions

Methods

IsMySql(DatabaseFacade)

Gets if the database is MySQL.

Declaration
public static bool IsMySql(this DatabaseFacade database)
Parameters
Microsoft.EntityFrameworkCore.Infrastructure.DatabaseFacade database

Returns
Boolean

true if the database is MySQL.

IsMySql(String)

Gets if the database is MySQL.

Declaration
public static bool IsMySql(this string providerName)
Parameters
String providerName

Returns
Boolean

true if the database is MySQL.

IsSqlite(DatabaseFacade)

Gets if the database is Sqlite.

Declaration
public static bool IsSqlite(this DatabaseFacade database)
Parameters
Microsoft.EntityFrameworkCore.Infrastructure.DatabaseFacade database

Returns
Boolean

true if the database is Sqlite.

IsSqlite(String)

Gets if the database is Sqlite.

Declaration
public static bool IsSqlite(this string providerName)
Parameters
String providerName

Returns
Boolean

true if the database is Sqlite.

IsSqlServer(DatabaseFacade)

Gets if the database is SQL Server.

Declaration
public static bool IsSqlServer(this DatabaseFacade database)
Parameters
Microsoft.EntityFrameworkCore.Infrastructure.DatabaseFacade database

Returns
Boolean

true if the database is SQL Server.

IsSqlServer(String)

Gets if the database is SQL Server.

Declaration
public static bool IsSqlServer(this string providerName)
Parameters
String providerName

Returns
Boolean

true if the database is SQL Server.

Back to top Generated by DocFX