RuntimePropertyBase.SetGetter 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
| 名稱 | Description |
|---|---|
| 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>)
這是一個內部 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>)
這是一個內部 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>)
這是一個內部 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>
- 屬性