Class MySQLDbContextOptionsBuilder
Represents the Microsoft.EntityFrameworkCore.Infrastructure.RelationalDbContextOptionsBuilder<TBuilder, TExtension> implementation for MySQL.
Inheritance
System.Object
Microsoft.EntityFrameworkCore.Infrastructure.RelationalDbContextOptionsBuilder <MySQLDbContextOptionsBuilder , MySQLOptionsExtension >
MySQLDbContextOptionsBuilder
Implements
Microsoft.EntityFrameworkCore.Infrastructure.IRelationalDbContextOptionsBuilderInfrastructure
Namespace: MySql.EntityFrameworkCore.Infrastructure
Assembly: MySql.EntityFrameworkCore.dll
Version: 9.3.0
Syntax
public class MySQLDbContextOptionsBuilder : RelationalDbContextOptionsBuilder<MySQLDbContextOptionsBuilder, MySQLOptionsExtension>, IRelationalDbContextOptionsBuilderInfrastructure
Constructors
MySQLDbContextOptionsBuilder(DbContextOptionsBuilder)
Initializes a new instance of the My
Declaration
public MySQLDbContextOptionsBuilder(DbContextOptionsBuilder optionsBuilder)
Parameters
Type | Name | Description |
---|---|---|
Microsoft. |
optionsBuilder | The options builder. |
Methods
EnableRetryOnFailure()
Configures the context to use the default retrying Microsoft.
Declaration
public virtual MySQLDbContextOptionsBuilder EnableRetryOnFailure()
Returns
Type | Description |
---|---|
My |
EnableRetryOnFailure(Int32)
Configures the context to use the default retrying Microsoft.
Declaration
public virtual MySQLDbContextOptionsBuilder EnableRetryOnFailure(int maxRetryCount)
Parameters
Type | Name | Description |
---|---|---|
System. |
maxRetryCount | The maximum number of retry attempts. |
Returns
Type | Description |
---|---|
My |
EnableRetryOnFailure(Int32, TimeSpan, ICollection<Int32>)
Configures the context to use the default retrying Microsoft.
Declaration
public virtual MySQLDbContextOptionsBuilder EnableRetryOnFailure(int maxRetryCount, TimeSpan maxRetryDelay, ICollection<int> errorNumbersToAdd)
Parameters
Type | Name | Description |
---|---|---|
System. |
maxRetryCount | The maximum number of retry attempts. |
System. |
maxRetryDelay | The maximum delay between retries. |
System. |
errorNumbersToAdd | Additional SQL error numbers that should be considered transient. |
Returns
Type | Description |
---|---|
My |
Implements
Microsoft.EntityFrameworkCore.Infrastructure.IRelationalDbContextOptionsBuilderInfrastructure