Click or drag to resize

MySQLServiceCollectionExtensions Class

MySQL extension class for IServiceCollection.
Inheritance Hierarchy
SystemObject
  MySql.Data.EntityFrameworkCore.ExtensionsMySQLServiceCollectionExtensions

Namespace:  MySql.Data.EntityFrameworkCore.Extensions
Assembly:  MySql.Data.EntityFrameworkCore (in MySql.Data.EntityFrameworkCore.dll) Version: 8.0.22
Syntax
public static class MySQLServiceCollectionExtensions

The MySQLServiceCollectionExtensions type exposes the following members.

Methods
  NameDescription
Public methodStatic memberAddEntityFrameworkMySQL

Adds the services required by the Microsoft SQL Server database provider for Entity Framework to an IServiceCollection.

Calling this method is no longer necessary when building most applications, including those that use dependency injection in ASP.NET or elsewhere. It is only needed when building the internal service provider for use with the [!:DbContextOptionsBuilder.UseInternalServiceProvider] method. This is not recommend other than for some advanced scenarios.

Top
See Also