Search Results for

    Show / Hide Table of Contents

    Class MySQLOptionsExtension

    Represents the Microsoft.EntityFrameworkCore.Infrastructure.RelationalOptionsExtension implementation for MySQL.

    Inheritance
    System.Object
    Microsoft.EntityFrameworkCore.Infrastructure.RelationalOptionsExtension
    MySQLOptionsExtension
    Implements
    Microsoft.EntityFrameworkCore.Infrastructure.IDbContextOptionsExtension
    Namespace: MySql.EntityFrameworkCore.Infrastructure.Internal
    Assembly: MySql.EntityFrameworkCore.dll
    Version: 9.3.0
    Syntax
    public class MySQLOptionsExtension : RelationalOptionsExtension, IDbContextOptionsExtension

    Constructors

    MySQLOptionsExtension()

    Constructor of MySQLOptionsExtension.

    Declaration
    public MySQLOptionsExtension()

    MySQLOptionsExtension(MySQLOptionsExtension)

    Creates a MySQLOptionsExtension based on another MySQLOptionsExtension.

    Declaration
    public MySQLOptionsExtension(MySQLOptionsExtension copyFrom)
    Parameters
    Type Name Description
    MySQLOptionsExtension copyFrom

    The MySQLOptionsExtension to copy.

    Properties

    CharSet

    The CharacterSet to use.

    Declaration
    public virtual CharacterSet CharSet { get; }
    Property Value
    Type Description
    CharacterSet

    The character set.

    Info

    Information/metadata about the extension.

    Declaration
    public override DbContextOptionsExtensionInfo Info { get; }
    Property Value
    Type Description
    Microsoft.EntityFrameworkCore.Infrastructure.DbContextOptionsExtensionInfo

    The information/metadata.

    Overrides
    Microsoft.EntityFrameworkCore.Infrastructure.RelationalOptionsExtension.Info

    Methods

    ApplyServices(IServiceCollection)

    Adds the services required to make the selected options work.

    Declaration
    public override void ApplyServices(IServiceCollection services)
    Parameters
    Type Name Description
    Microsoft.Extensions.DependencyInjection.IServiceCollection services

    The collection to add services to.

    Overrides
    Microsoft.EntityFrameworkCore.Infrastructure.RelationalOptionsExtension.ApplyServices(Microsoft.Extensions.DependencyInjection.IServiceCollection)

    Clone()

    Clones a MySQLOptionsExtension object.

    Declaration
    protected override RelationalOptionsExtension Clone()
    Returns
    Type Description
    Microsoft.EntityFrameworkCore.Infrastructure.RelationalOptionsExtension

    A clone of this instance, which can be modified before being returned as immutable.

    Overrides
    Microsoft.EntityFrameworkCore.Infrastructure.RelationalOptionsExtension.Clone()

    WithCharSet(CharacterSet)

    Returns a copy of the current instance configured with the specified character set.

    Declaration
    public MySQLOptionsExtension WithCharSet(CharacterSet charSet)
    Parameters
    Type Name Description
    CharacterSet charSet

    The CharacterSet to use.

    Returns
    Type Description
    MySQLOptionsExtension

    A MySQLOptionsExtension object with the specified charSet.

    Implements

    Microsoft.EntityFrameworkCore.Infrastructure.IDbContextOptionsExtension
    In This Article
    • Constructors
      • MySQLOptionsExtension()
      • MySQLOptionsExtension(MySQLOptionsExtension)
    • Properties
      • CharSet
      • Info
    • Methods
      • ApplyServices(IServiceCollection)
      • Clone()
      • WithCharSet(CharacterSet)
    • Implements
    Back to top Copyright © 2021, 2025, Oracle and/or its affiliates.