RuntimePropertyBase.SetGetter 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
| 名称 | 说明 |
|---|---|
| SetGetter<TEntity,TStructural,TValue>(Func<TEntity,IReadOnlyList<Int32>, TValue>, Func<TEntity,IReadOnlyList<Int32>,Boolean>, Func<TStructural, TValue>, Func<TStructural,Boolean>) |
这是一个内部 API,支持Entity Framework Core基础结构,不受与公共 API 相同的兼容性标准的约束。 可以在任何版本中更改或删除它,而不通知。 只需在代码中直接使用它,并非常谨慎地知道这样做可能会导致应用程序在更新到新的Entity Framework Core版本时失败。 |
| SetGetter<TEntity,TStructuralType,TValue>(Func<TEntity,TValue>, Func<TEntity,Boolean>, Func<TStructuralType,TValue>, Func<TStructuralType,Boolean>) |
这是一个内部 API,支持Entity Framework Core基础结构,不受与公共 API 相同的兼容性标准的约束。 可以在任何版本中更改或删除它,而不通知。 只需在代码中直接使用它,并非常谨慎地知道这样做可能会导致应用程序在更新到新的Entity Framework Core版本时失败。 |
| SetGetter<TEntity,TValue>(Func<TEntity,TValue>, Func<TEntity,Boolean>) |
这是一个内部 API,支持Entity Framework Core基础结构,不受与公共 API 相同的兼容性标准的约束。 可以在任何版本中更改或删除它,而不通知。 只需在代码中直接使用它,并非常谨慎地知道这样做可能会导致应用程序在更新到新的Entity Framework Core版本时失败。 |
SetGetter<TEntity,TStructural,TValue>(Func<TEntity,IReadOnlyList<Int32>, TValue>, Func<TEntity,IReadOnlyList<Int32>,Boolean>, Func<TStructural, TValue>, Func<TStructural,Boolean>)
- Source:
- RuntimePropertyBase.cs
- Source:
- RuntimePropertyBase.cs
这是一个内部 API,支持Entity Framework Core基础结构,不受与公共 API 相同的兼容性标准的约束。 可以在任何版本中更改或删除它,而不通知。 只需在代码中直接使用它,并非常谨慎地知道这样做可能会导致应用程序在更新到新的Entity Framework Core版本时失败。
[Microsoft.EntityFrameworkCore.Infrastructure.EntityFrameworkInternal]
public virtual void SetGetter<TEntity,TStructural,TValue>(Func<TEntity,System.Collections.Generic.IReadOnlyList<int>,TValue> getClrValueUsingContainingEntity, Func<TEntity,System.Collections.Generic.IReadOnlyList<int>,bool> hasSentinelUsingContainingEntity, Func<TStructural,TValue> getClrValue, Func<TStructural,bool> hasSentinel) where TEntity : class;
[<Microsoft.EntityFrameworkCore.Infrastructure.EntityFrameworkInternal>]
abstract member SetGetter : Func<'Entity, System.Collections.Generic.IReadOnlyList<int>, 'Value (requires 'Entity : null)> * Func<'Entity, System.Collections.Generic.IReadOnlyList<int>, bool (requires 'Entity : null)> * Func<'Structural, 'Value> * Func<'Structural, bool> -> unit (requires 'Entity : null)
override this.SetGetter : Func<'Entity, System.Collections.Generic.IReadOnlyList<int>, 'Value (requires 'Entity : null)> * Func<'Entity, System.Collections.Generic.IReadOnlyList<int>, bool (requires 'Entity : null)> * Func<'Structural, 'Value> * Func<'Structural, bool> -> unit (requires 'Entity : null)
Public Overridable Sub SetGetter(Of TEntity As Class, TStructural As Class, TValue As Class) (getClrValueUsingContainingEntity As Func(Of TEntity, IReadOnlyList(Of Integer), TValue), hasSentinelUsingContainingEntity As Func(Of TEntity, IReadOnlyList(Of Integer), Boolean), getClrValue As Func(Of TStructural, TValue), hasSentinel As Func(Of TStructural, Boolean))
类型参数
- TEntity
- TStructural
- TValue
参数
- getClrValueUsingContainingEntity
- Func<TEntity,IReadOnlyList<Int32>,TValue>
- hasSentinelUsingContainingEntity
- Func<TEntity,IReadOnlyList<Int32>,Boolean>
- getClrValue
- Func<TStructural,TValue>
- 特性
适用于
SetGetter<TEntity,TStructuralType,TValue>(Func<TEntity,TValue>, Func<TEntity,Boolean>, Func<TStructuralType,TValue>, Func<TStructuralType,Boolean>)
- Source:
- RuntimePropertyBase.cs
- Source:
- RuntimePropertyBase.cs
这是一个内部 API,支持Entity Framework Core基础结构,不受与公共 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>
- structuralTypeGetter
- Func<TStructuralType,TValue>
- 特性
适用于
SetGetter<TEntity,TValue>(Func<TEntity,TValue>, Func<TEntity,Boolean>)
- Source:
- RuntimePropertyBase.cs
- Source:
- RuntimePropertyBase.cs
这是一个内部 API,支持Entity Framework Core基础结构,不受与公共 API 相同的兼容性标准的约束。 可以在任何版本中更改或删除它,而不通知。 只需在代码中直接使用它,并非常谨慎地知道这样做可能会导致应用程序在更新到新的Entity Framework Core版本时失败。
[Microsoft.EntityFrameworkCore.Infrastructure.EntityFrameworkInternal]
public virtual void SetGetter<TEntity,TValue>(Func<TEntity,TValue> getClrValue, Func<TEntity,bool> hasSentinel) where TEntity : class;
[<Microsoft.EntityFrameworkCore.Infrastructure.EntityFrameworkInternal>]
abstract member SetGetter : Func<'Entity, 'Value (requires 'Entity : null)> * Func<'Entity, bool (requires 'Entity : null)> -> unit (requires 'Entity : null)
override this.SetGetter : Func<'Entity, 'Value (requires 'Entity : null)> * Func<'Entity, bool (requires 'Entity : null)> -> unit (requires 'Entity : null)
Public Overridable Sub SetGetter(Of TEntity As Class, TValue As Class) (getClrValue As Func(Of TEntity, TValue), hasSentinel As Func(Of TEntity, Boolean))
类型参数
- TEntity
- TValue
参数
- getClrValue
- Func<TEntity,TValue>
- 特性