RuntimePropertyBase.SetGetter<TEntity,TStructuralType,TValue> 方法

定义

这是一个支持 Entity Framework Core 基础结构的内部 API,不受与公共 API 相同的兼容性标准的约束。 可能会在任何版本中更改或删除它,恕不另行通知。 应仅在代码中直接使用它,并且非常谨慎,并且知道在更新到新的 Entity Framework Core 版本时,这样做可能会导致应用程序失败。

[Microsoft.EntityFrameworkCore.Infrastructure.EntityFrameworkInternal]
public virtual void SetGetter<TEntity,TStructuralType,TValue> (Func<TEntity,TValue> getter, Func<TEntity,bool> hasDefaultValue, Func<TStructuralType,TValue> structuralTypeGetter, Func<TStructuralType,bool> hasStructuralTypeSentinelValue) where TEntity : class;
[<Microsoft.EntityFrameworkCore.Infrastructure.EntityFrameworkInternal>]
abstract member SetGetter : Func<'Entity, 'Value (requires 'Entity : null)> * Func<'Entity, bool (requires 'Entity : null)> * Func<'StructuralType, 'Value> * Func<'StructuralType, bool> -> unit (requires 'Entity : null)
override this.SetGetter : Func<'Entity, 'Value (requires 'Entity : null)> * Func<'Entity, bool (requires 'Entity : null)> * Func<'StructuralType, 'Value> * Func<'StructuralType, bool> -> unit (requires 'Entity : null)
Public Overridable Sub SetGetter(Of TEntity As Class, TStructuralType As Class, TValue As Class) (getter As Func(Of TEntity, TValue), hasDefaultValue As Func(Of TEntity, Boolean), structuralTypeGetter As Func(Of TStructuralType, TValue), hasStructuralTypeSentinelValue As Func(Of TStructuralType, Boolean))

类型参数

TEntity
TStructuralType
TValue

参数

getter
Func<TEntity,TValue>
hasDefaultValue
Func<TEntity,Boolean>
structuralTypeGetter
Func<TStructuralType,TValue>
hasStructuralTypeSentinelValue
Func<TStructuralType,Boolean>
属性

适用于