Search Results for

    Show / Hide Table of Contents

    Class MySqlDependencyResolver

    Provides the capability to resolve a dependency.

    Inheritance
    System.Object
    MySqlDependencyResolver
    Namespace: MySql.Data.EntityFramework
    Assembly: MySql.Data.EntityFramework.dll
    Version: 9.3.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.

    In This Article
    • Methods
      • GetService(Type, Object)
      • GetServices(Type, Object)
    Back to top Copyright © 2021, 2025, Oracle and/or its affiliates.