SqlServerValueGenerationConvention 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 convention that configures store value generation as OnAdd on properties that are part of the primary key and not part of any foreign keys, were configured to have a database default value or were configured to use a SqlServerValueGenerationStrategy. It also configures properties as OnAddOrUpdate if they were configured as computed columns.
public class SqlServerValueGenerationConvention : Microsoft.EntityFrameworkCore.Metadata.Conventions.RelationalValueGenerationConvention
type SqlServerValueGenerationConvention = class
inherit RelationalValueGenerationConvention
Public Class SqlServerValueGenerationConvention
Inherits RelationalValueGenerationConvention
- Inheritance
-
SqlServerValueGenerationConvention
See Model building conventions, and Accessing SQL Server and Azure SQL databases with EF Core for more information and examples.
Sql |
Creates a new instance of SqlServerValueGenerationConvention. |
Dependencies |
Dependencies for this service. (Inherited from ValueGenerationConvention) |
Relational |
Relational provider-specific dependencies for this service. (Inherited from RelationalValueGenerationConvention) |
Proizvod | Verzije |
---|---|
Entity Framework Core | 3.0, 3.1, 5.0, 6.0, 7.0, 8.0, 9.0 |
Entity Framework povratne informacije
Entity Framework je projekat otvorenog koda. Odaberite vezu za pružanje povratnih informacija: