SqlServerEntityTypeExtensions.SetHistoryTableName 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
SetHistoryTableName(IMutableEntityType, String) |
设置一个值,该值表示与映射到临时表的实体关联的历史记录表的名称。 |
SetHistoryTableName(IConventionEntityType, String, Boolean) |
设置一个值,该值表示与映射到临时表的实体关联的历史记录表的名称。 |
SetHistoryTableName(IMutableEntityType, String)
设置一个值,该值表示与映射到临时表的实体关联的历史记录表的名称。
public static void SetHistoryTableName (this Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType entityType, string? historyTableName);
static member SetHistoryTableName : Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType * string -> unit
<Extension()>
Public Sub SetHistoryTableName (entityType As IMutableEntityType, historyTableName As String)
参数
- entityType
- IMutableEntityType
实体类型。
- historyTableName
- String
要设置的值。
适用于
SetHistoryTableName(IConventionEntityType, String, Boolean)
设置一个值,该值表示与映射到临时表的实体关联的历史记录表的名称。
public static string? SetHistoryTableName (this Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType entityType, string? historyTableName, bool fromDataAnnotation = false);
static member SetHistoryTableName : Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType * string * bool -> string
<Extension()>
Public Function SetHistoryTableName (entityType As IConventionEntityType, historyTableName As String, Optional fromDataAnnotation As Boolean = false) As String
参数
- entityType
- IConventionEntityType
实体类型。
- historyTableName
- String
要设置的值。
- fromDataAnnotation
- Boolean
指示配置是否是使用数据注释指定的。
返回
配置的值。
适用于
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈