Search Results for

    Show / Hide Table of Contents

    Class MySQLMigrationBuilderExtensions

    MySQL extension methods for Microsoft.EntityFrameworkCore.Migrations.MigrationBuilder.

    Inheritance
    System.Object
    MySQLMigrationBuilderExtensions
    Namespace: MySql.EntityFrameworkCore.Extensions
    Assembly: MySql.EntityFrameworkCore.dll
    Version: 9.3.0
    Syntax
    public static class MySQLMigrationBuilderExtensions

    Methods

    IsMySql(MigrationBuilder)

    Indicates whether the database provider currently in use is the MySQL provider.

    Declaration
    public static bool IsMySql(this MigrationBuilder migrationBuilder)
    Parameters
    Type Name Description
    Microsoft.EntityFrameworkCore.Migrations.MigrationBuilder migrationBuilder

    The migrationBuilder from the parameters on Microsoft.EntityFrameworkCore.Migrations.Migration.Up(Microsoft.EntityFrameworkCore.Migrations.MigrationBuilder) or Microsoft.EntityFrameworkCore.Migrations.Migration.Down(Microsoft.EntityFrameworkCore.Migrations.MigrationBuilder).

    Returns
    Type Description
    System.Boolean

    true if MySQL is being used; otherwise, false.

    In This Article
    • Methods
      • IsMySql(MigrationBuilder)
    Back to top Copyright © 2021, 2025, Oracle and/or its affiliates.