ServiceParameterBindingFactory Class
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
A IParameterBindingFactory for binding to dependency-injected services.
public class ServiceParameterBindingFactory : Microsoft.EntityFrameworkCore.Metadata.IParameterBindingFactory
type ServiceParameterBindingFactory = class
interface IParameterBindingFactory
Public Class ServiceParameterBindingFactory
Implements IParameterBindingFactory
- Inheritance
-
ServiceParameterBindingFactory
- Derived
- Implements
The service lifetime is Singleton and multiple registrations are allowed. This means a single instance of each service is used by many DbContext instances. The implementation must be thread-safe. This service cannot depend on services registered as Scoped.
See Entity types with constructors for more information and examples.
Service |
Creates a new ServiceParameterBindingFactory instance for the given service type. |
Bind(IConvention |
Creates a ParameterBinding for the given type and name on the given entity type. |
Bind(IMutable |
Creates a ParameterBinding for the given type and name on the given entity type. |
Bind(IRead |
Creates a ParameterBinding for the given type and name on the given entity type. |
Can |
Checks whether or not this factory can bind a parameter with the given type and name. |
Produkt | Versioner |
---|---|
Entity Framework Core | 3.0, 3.1, 5.0, 6.0, 7.0, 8.0, 9.0 |
Feedback om Entity Framework
Entity Framework är ett öppen källkod projekt. Välj en länk för att ge feedback: