Class MySqlDependencyResolver
Provides the capability to resolve a dependency.
Inheritance
System.Object
MySqlDependencyResolver
Namespace: MySql.Data.EntityFramework
Assembly: MySql.Data.EntityFramework.dll
Version: 9.1.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 |
---|---|---|
System.Type | type | The base class that defines the dependency to be resolved. |
System.Object | key | Optionally, the key of the dependency to be resolved. |
Returns
Type | Description |
---|---|
System.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 |
---|---|---|
System.Type | type | The base class that defines the dependency to be resolved. |
System.Object | key | Optionally, the key of the dependency to be resolved. |
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<System.Object> | All services that resolve the dependency. |