ValueGeneratorSelector 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.
Selects value generators to be used to generate values for properties of entities.
This type is typically used by database providers (and other extensions). It is generally not used in application code.
public class ValueGeneratorSelector : Microsoft.EntityFrameworkCore.ValueGeneration.IValueGeneratorSelector
type ValueGeneratorSelector = class
interface IValueGeneratorSelector
Public Class ValueGeneratorSelector
Implements IValueGeneratorSelector
- Inheritance
-
ValueGeneratorSelector
- Derived
- Implements
The service lifetime is Scoped. This means that each DbContext instance will use its own instance of this service. The implementation may depend on other services registered with any lifetime. The implementation does not need to be thread-safe.
See Implementation of database providers and extensions for more information and examples.
Value |
Initializes a new instance of the ValueGeneratorSelector class. |
Value |
Initializes a new instance of the ValueGeneratorSelector class. |
Cache |
The cache being used to store value generator instances. |
Dependencies |
Dependencies for this service. |
Create(IProperty, IEntity |
Creates a new value generator for the given property. |
Create(IProperty, IType |
Obsolete.
Creates a new value generator for the given property. |
Find |
Creates a new value generator for the given property and type, where the property may have a ValueConverter. |
Find |
Creates a new value generator for the given property and type, where the property may have a ValueConverter. |
Select(IProperty, IEntity |
Selects the appropriate value generator for a given property. |
Select(IProperty, IType |
Obsolete.
Selects the appropriate value generator for a given property. |
Try |
Creates a new value generator for the given property. |
Try |
Selects the appropriate value generator for a given property, if available. |
Product | Versions |
---|---|
Entity Framework Core | 1.0, 1.1, 2.0, 2.1, 2.2, 3.0, 3.1, 5.0, 6.0, 7.0, 8.0, 9.0 |
Entity Framework feedback
Entity Framework is an open source project. Select a link to provide feedback: