SqlServerEntityTypeExtensions.UseSqlOutputClause 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
UseSqlOutputClause(IMutableEntityType, Nullable<Boolean>) |
设置一个值,该值指示在将更改保存到表时是否使用 SQL OUTPUT 子句。 OUTPUT 子句与某些SQL Server功能不兼容,例如带触发器的表。 |
UseSqlOutputClause(IConventionEntityType, Nullable<Boolean>, Boolean) |
设置一个值,该值指示在将更改保存到表时是否使用 SQL OUTPUT 子句。 OUTPUT 子句与某些SQL Server功能不兼容,例如带触发器的表。 |
UseSqlOutputClause(IMutableEntityType, Nullable<Boolean>, StoreObjectIdentifier) |
设置一个值,该值指示在将更改保存到表时是否使用 SQL OUTPUT 子句。 OUTPUT 子句与某些SQL Server功能不兼容,例如带触发器的表。 |
UseSqlOutputClause(IConventionEntityType, Nullable<Boolean>, StoreObjectIdentifier, Boolean) |
设置一个值,该值指示在将更改保存到表时是否使用 SQL OUTPUT 子句。 OUTPUT 子句与某些SQL Server功能不兼容,例如带触发器的表。 |
UseSqlOutputClause(IMutableEntityType, Nullable<Boolean>)
设置一个值,该值指示在将更改保存到表时是否使用 SQL OUTPUT 子句。 OUTPUT 子句与某些SQL Server功能不兼容,例如带触发器的表。
public static void UseSqlOutputClause (this Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType entityType, bool? useSqlOutputClause);
static member UseSqlOutputClause : Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType * Nullable<bool> -> unit
<Extension()>
Public Sub UseSqlOutputClause (entityType As IMutableEntityType, useSqlOutputClause As Nullable(Of Boolean))
参数
- entityType
- IMutableEntityType
实体类型。
适用于
UseSqlOutputClause(IConventionEntityType, Nullable<Boolean>, Boolean)
设置一个值,该值指示在将更改保存到表时是否使用 SQL OUTPUT 子句。 OUTPUT 子句与某些SQL Server功能不兼容,例如带触发器的表。
public static bool? UseSqlOutputClause (this Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType entityType, bool? useSqlOutputClause, bool fromDataAnnotation = false);
static member UseSqlOutputClause : Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType * Nullable<bool> * bool -> Nullable<bool>
<Extension()>
Public Function UseSqlOutputClause (entityType As IConventionEntityType, useSqlOutputClause As Nullable(Of Boolean), Optional fromDataAnnotation As Boolean = false) As Nullable(Of Boolean)
参数
- entityType
- IConventionEntityType
实体类型。
- fromDataAnnotation
- Boolean
指示配置是否是使用数据注释指定的。
返回
配置的值。
适用于
UseSqlOutputClause(IMutableEntityType, Nullable<Boolean>, StoreObjectIdentifier)
设置一个值,该值指示在将更改保存到表时是否使用 SQL OUTPUT 子句。 OUTPUT 子句与某些SQL Server功能不兼容,例如带触发器的表。
public static void UseSqlOutputClause (this Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType entityType, bool? useSqlOutputClause, in Microsoft.EntityFrameworkCore.Metadata.StoreObjectIdentifier storeObject);
static member UseSqlOutputClause : Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType * Nullable<bool> * StoreObjectIdentifier -> unit
<Extension()>
Public Sub UseSqlOutputClause (entityType As IMutableEntityType, useSqlOutputClause As Nullable(Of Boolean), ByRef storeObject As StoreObjectIdentifier)
参数
- entityType
- IMutableEntityType
实体类型。
- storeObject
- StoreObjectIdentifier
类似表的存储对象的标识符。
适用于
UseSqlOutputClause(IConventionEntityType, Nullable<Boolean>, StoreObjectIdentifier, Boolean)
设置一个值,该值指示在将更改保存到表时是否使用 SQL OUTPUT 子句。 OUTPUT 子句与某些SQL Server功能不兼容,例如带触发器的表。
public static bool? UseSqlOutputClause (this Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType entityType, bool? useSqlOutputClause, in Microsoft.EntityFrameworkCore.Metadata.StoreObjectIdentifier storeObject, bool fromDataAnnotation = false);
static member UseSqlOutputClause : Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType * Nullable<bool> * StoreObjectIdentifier * bool -> Nullable<bool>
<Extension()>
Public Function UseSqlOutputClause (entityType As IConventionEntityType, useSqlOutputClause As Nullable(Of Boolean), ByRef storeObject As StoreObjectIdentifier, Optional fromDataAnnotation As Boolean = false) As Nullable(Of Boolean)
参数
- entityType
- IConventionEntityType
实体类型。
- storeObject
- StoreObjectIdentifier
类似表的存储对象的标识符。
- fromDataAnnotation
- Boolean
指示配置是否是使用数据注释指定的。
返回
配置的值。