语言

IMutableProperty.BeforeSaveBehavior 属性

定义

获取一个值,该值指示在实体保存到数据库之前是否可以修改此属性。

如果 Throw,则在处于状态时 Added ,如果为此属性赋值,则会引发异常。

如果 Ignore,则在处于状态时,将忽略任何 Added 值集。

public Microsoft.EntityFrameworkCore.Metadata.PropertySaveBehavior BeforeSaveBehavior { get; set; }
member this.BeforeSaveBehavior : Microsoft.EntityFrameworkCore.Metadata.PropertySaveBehavior with get, set
Public Property BeforeSaveBehavior As PropertySaveBehavior

属性值

适用于