语言

SqlServerStoreGenerationConvention 类

定义

一种约定,用于确保属性未配置为具有默认值(作为计算列或同时使用)。SqlServerValueGenerationStrategy

[System.Runtime.CompilerServices.Nullable(0)]
public class SqlServerStoreGenerationConvention : Microsoft.EntityFrameworkCore.Metadata.Conventions.StoreGenerationConvention
public class SqlServerStoreGenerationConvention : Microsoft.EntityFrameworkCore.Metadata.Conventions.StoreGenerationConvention
[<System.Runtime.CompilerServices.Nullable(0)>]
type SqlServerStoreGenerationConvention = class
    inherit StoreGenerationConvention
type SqlServerStoreGenerationConvention = class
    inherit StoreGenerationConvention
Public Class SqlServerStoreGenerationConvention
Inherits StoreGenerationConvention
继承
SqlServerStoreGenerationConvention
特性

注解

有关详细信息和示例,请参阅使用 EF Core 访问SQL Server和Azure SQL数据库。

适用于