MutablePropertyExtensions.SetBeforeSaveBehavior 메서드

정의

엔터티를 데이터베이스에 저장하기 전에 이 속성을 수정할 수 있는지 여부를 나타내는 값을 가져오거나 설정합니다.

이면 Throw값이 상태에 있을 때 이 속성에 할당된 경우 예외가 Added throw됩니다.

이면 Ignore값 집합이 상태일 때 Added 무시됩니다.

public static void SetBeforeSaveBehavior (this Microsoft.EntityFrameworkCore.Metadata.IMutableProperty property, Microsoft.EntityFrameworkCore.Metadata.PropertySaveBehavior? beforeSaveBehavior);
static member SetBeforeSaveBehavior : Microsoft.EntityFrameworkCore.Metadata.IMutableProperty * Nullable<Microsoft.EntityFrameworkCore.Metadata.PropertySaveBehavior> -> unit
<Extension()>
Public Sub SetBeforeSaveBehavior (property As IMutableProperty, beforeSaveBehavior As Nullable(Of PropertySaveBehavior))

매개 변수

property
IMutableProperty

속성입니다.

beforeSaveBehavior
Nullable<PropertySaveBehavior>

엔터티를 데이터베이스에 저장하기 전에 이 속성을 수정할 수 있는지 여부를 나타내는 값입니다.

적용 대상