Class ParameterNameGeneratorFactory
- Namespace
- Microsoft.EntityFrameworkCore.Storage
- Assembly
- Microsoft.EntityFrameworkCore.Relational.dll
Creates instances of the ParameterNameGenerator type.
This type is typically used by database providers (and other extensions). It is generally not used in application code.
The service lifetime is Singleton. This means a single instance is used by many Microsoft.EntityFrameworkCore.DbContext instances. The implementation must be thread-safe. This service cannot depend on services registered as Scoped.
public class ParameterNameGeneratorFactory : IParameterNameGeneratorFactory
- Inheritance
-
ParameterNameGeneratorFactory
- Implements
- Inherited Members
Constructors
ParameterNameGeneratorFactory(ParameterNameGeneratorDependencies)
Initializes a new instance of the ParameterNameGeneratorFactory class.
public ParameterNameGeneratorFactory(ParameterNameGeneratorDependencies dependencies)
Parameters
dependencies
ParameterNameGeneratorDependenciesParameter object containing dependencies for this service.
Methods
Create()
Creates a new ParameterNameGenerator.
public virtual ParameterNameGenerator Create()
Returns
- ParameterNameGenerator
The newly created generator.