PropertyInterceptionContext<TValue>.WithValue(TValue) 方法

定义

创建一个新的 BeginTransactionInterceptionContext ,其中包含此拦截上下文中的所有上下文信息以及给定的属性值。

public System.Data.Entity.Infrastructure.Interception.PropertyInterceptionContext<TValue> WithValue(TValue value);
member this.WithValue : 'Value -> System.Data.Entity.Infrastructure.Interception.PropertyInterceptionContext<'Value>
Public Function WithValue (value As TValue) As PropertyInterceptionContext(Of TValue)

参数

value
TValue

将分配给目标属性的值。

返回

与给定属性值关联的新拦截上下文。

适用于