Class MySQLOptionsExtension
Represents the Microsoft.
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 My
Declaration
public MySQLOptionsExtension()
MySQLOptionsExtension(MySQLOptionsExtension)
Creates a My
Declaration
public MySQLOptionsExtension(MySQLOptionsExtension copyFrom)
Parameters
Type | Name | Description |
---|---|---|
My |
copyFrom | The My |
Properties
CharSet
The Character
Declaration
public virtual CharacterSet CharSet { get; }
Property Value
Type | Description |
---|---|
Character |
The character set. |
Info
Information/metadata about the extension.
Declaration
public override DbContextOptionsExtensionInfo Info { get; }
Property Value
Type | Description |
---|---|
Microsoft. |
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. |
services | The collection to add services to. |
Overrides
Microsoft.EntityFrameworkCore.Infrastructure.RelationalOptionsExtension.ApplyServices(Microsoft.Extensions.DependencyInjection.IServiceCollection)
Clone()
Clones a My
Declaration
protected override RelationalOptionsExtension Clone()
Returns
Type | Description |
---|---|
Microsoft. |
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 |
---|---|---|
Character |
charSet | The Character |
Returns
Type | Description |
---|---|
My |
A My |
Implements
Microsoft.EntityFrameworkCore.Infrastructure.IDbContextOptionsExtension