Class MySqlDependencyResolver
Provides the capability to resolve a dependency.
Namespace: MySql.Data.EntityFramework
Assembly: MySql.Data.EntityFramework.dll
Version: 8.4.0
Syntax
public class MySqlDependencyResolver : IDbDependencyResolver
Methods
GetService(Type, Object)
Attempts to resolve a dependency for a given contract type and optionally a given key.
Declaration
public object GetService(Type type, object key)
Parameters
Type | Name | Description |
---|---|---|
Type | type | The base class that defines the dependency to be resolved. |
Object | key | Optionally, the key of the dependency to be resolved. |
Returns
Type | Description |
---|---|
Object | The resolved dependency. |
GetServices(Type, Object)
Attempts to resolve a dependency for all of the registered services with the given type and key combination.
Declaration
public IEnumerable<object> GetServices(Type type, object key)
Parameters
Type | Name | Description |
---|---|---|
Type | type | The base class that defines the dependency to be resolved. |
Object | key | Optionally, the key of the dependency to be resolved. |
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<Object> | All services that resolve the dependency. |