語言

RuntimePropertyBase.SetMaterializationSetter 方法

定義

多載

名稱 Description
SetMaterializationSetter<TEntity,TStructural,TValue>(Action<TEntity,IReadOnlyList<Int32>,TValue>, Func<TStructural,TValue,TStructural>)

這是一個內部 API,支援 Entity Framework Core 基礎架構,且不受公開 API 相同的相容性標準約束。 該內容可能會在任何新聞稿中未經通知而更改或移除。 你應該只在程式碼中直接使用它,並且要非常謹慎,並且要知道這樣做可能會導致更新到新的 Entity Framework Core 版本時應用程式失敗。

SetMaterializationSetter<TEntity,TValue>(Func<TEntity,TValue,TEntity>)

這是一個內部 API,支援 Entity Framework Core 基礎架構,且不受公開 API 相同的相容性標準約束。 該內容可能會在任何新聞稿中未經通知而更改或移除。 你應該只在程式碼中直接使用它,並且要非常謹慎,並且要知道這樣做可能會導致更新到新的 Entity Framework Core 版本時應用程式失敗。

SetMaterializationSetter<TEntity,TValue>(Action<TEntity,TValue>)

這是一個內部 API,支援 Entity Framework Core 基礎架構,且不受公開 API 相同的相容性標準約束。 該內容可能會在任何新聞稿中未經通知而更改或移除。 你應該只在程式碼中直接使用它,並且要非常謹慎,並且要知道這樣做可能會導致更新到新的 Entity Framework Core 版本時應用程式失敗。

SetMaterializationSetter<TEntity,TStructural,TValue>(Action<TEntity,IReadOnlyList<Int32>,TValue>, Func<TStructural,TValue,TStructural>)

來源:
RuntimePropertyBase.cs
來源:
RuntimePropertyBase.cs

這是一個內部 API,支援 Entity Framework Core 基礎架構,且不受公開 API 相同的相容性標準約束。 該內容可能會在任何新聞稿中未經通知而更改或移除。 你應該只在程式碼中直接使用它,並且要非常謹慎,並且要知道這樣做可能會導致更新到新的 Entity Framework Core 版本時應用程式失敗。

[Microsoft.EntityFrameworkCore.Infrastructure.EntityFrameworkInternal]
public virtual void SetMaterializationSetter<TEntity,TStructural,TValue>(Action<TEntity,System.Collections.Generic.IReadOnlyList<int>,TValue> setClrValueUsingContainingEntity, Func<TStructural,TValue,TStructural> setClrValue) where TEntity : class;
[<Microsoft.EntityFrameworkCore.Infrastructure.EntityFrameworkInternal>]
abstract member SetMaterializationSetter : Action<'Entity, System.Collections.Generic.IReadOnlyList<int>, 'Value (requires 'Entity : null)> * Func<'Structural, 'Value, 'Structural> -> unit (requires 'Entity : null)
override this.SetMaterializationSetter : Action<'Entity, System.Collections.Generic.IReadOnlyList<int>, 'Value (requires 'Entity : null)> * Func<'Structural, 'Value, 'Structural> -> unit (requires 'Entity : null)
Public Overridable Sub SetMaterializationSetter(Of TEntity As Class, TStructural As Class, TValue As Class) (setClrValueUsingContainingEntity As Action(Of TEntity, IReadOnlyList(Of Integer), TValue), setClrValue As Func(Of TStructural, TValue, TStructural))

類型參數

TEntity
TStructural
TValue

參數

setClrValueUsingContainingEntity
Action<TEntity,IReadOnlyList<Int32>,TValue>
setClrValue
Func<TStructural,TValue,TStructural>
屬性

適用於

SetMaterializationSetter<TEntity,TValue>(Func<TEntity,TValue,TEntity>)

來源:
RuntimePropertyBase.cs
來源:
RuntimePropertyBase.cs

這是一個內部 API,支援 Entity Framework Core 基礎架構,且不受公開 API 相同的相容性標準約束。 該內容可能會在任何新聞稿中未經通知而更改或移除。 你應該只在程式碼中直接使用它,並且要非常謹慎,並且要知道這樣做可能會導致更新到新的 Entity Framework Core 版本時應用程式失敗。

[Microsoft.EntityFrameworkCore.Infrastructure.EntityFrameworkInternal]
public virtual void SetMaterializationSetter<TEntity,TValue>(Func<TEntity,TValue,TEntity> setClrValue) where TEntity : class;
[<Microsoft.EntityFrameworkCore.Infrastructure.EntityFrameworkInternal>]
abstract member SetMaterializationSetter : Func<'Entity, 'Value, 'Entity (requires 'Entity : null and 'Entity : null)> -> unit (requires 'Entity : null)
override this.SetMaterializationSetter : Func<'Entity, 'Value, 'Entity (requires 'Entity : null and 'Entity : null)> -> unit (requires 'Entity : null)
Public Overridable Sub SetMaterializationSetter(Of TEntity As Class, TValue As Class) (setClrValue As Func(Of TEntity, TValue, TEntity))

類型參數

TEntity
TValue

參數

setClrValue
Func<TEntity,TValue,TEntity>
屬性

適用於

SetMaterializationSetter<TEntity,TValue>(Action<TEntity,TValue>)

來源:
RuntimePropertyBase.cs

這是一個內部 API,支援 Entity Framework Core 基礎架構,且不受公開 API 相同的相容性標準約束。 該內容可能會在任何新聞稿中未經通知而更改或移除。 你應該只在程式碼中直接使用它,並且要非常謹慎,並且要知道這樣做可能會導致更新到新的 Entity Framework Core 版本時應用程式失敗。

[Microsoft.EntityFrameworkCore.Infrastructure.EntityFrameworkInternal]
public virtual void SetMaterializationSetter<TEntity,TValue>(Action<TEntity,TValue> setter) where TEntity : class;
[<Microsoft.EntityFrameworkCore.Infrastructure.EntityFrameworkInternal>]
abstract member SetMaterializationSetter : Action<'Entity, 'Value (requires 'Entity : null)> -> unit (requires 'Entity : null)
override this.SetMaterializationSetter : Action<'Entity, 'Value (requires 'Entity : null)> -> unit (requires 'Entity : null)
Public Overridable Sub SetMaterializationSetter(Of TEntity As Class, TValue As Class) (setter As Action(Of TEntity, TValue))

類型參數

TEntity
TValue

參數

setter
Action<TEntity,TValue>
屬性

適用於