Bahasa

RuntimePropertyBase.SetIndexedCollectionAccessor<TEntity,TCollection,TElement> Metode

Definisi

Ini adalah API internal yang mendukung infrastruktur Entity Framework Core dan tidak tunduk pada standar kompatibilitas yang sama dengan API publik. Ini dapat diubah atau dihapus tanpa pemberitahuan dalam rilis apa pun. Anda hanya boleh menggunakannya langsung dalam kode Anda dengan sangat hati-hati dan mengetahui bahwa melakukannya dapat mengakibatkan kegagalan aplikasi saat memperbarui ke rilis Entity Framework Core baru.

[Microsoft.EntityFrameworkCore.Infrastructure.EntityFrameworkInternal]
public virtual void SetIndexedCollectionAccessor<TEntity,TCollection,TElement>(Func<TEntity,int,TElement> get, Action<TEntity,int,TElement?> set, Action<TEntity,int,TElement?> setForMaterialization, Func<int,TCollection> createCollection) where TEntity : class where TCollection : class, System.Collections.Generic.IList<TElement> where TElement : class;
[<Microsoft.EntityFrameworkCore.Infrastructure.EntityFrameworkInternal>]
abstract member SetIndexedCollectionAccessor : Func<'Entity, int, 'Element (requires 'Entity : null and 'Element : null)> * Action<'Entity, int, 'Element (requires 'Entity : null and 'Element : null)> * Action<'Entity, int, 'Element (requires 'Entity : null and 'Element : null)> * Func<int, 'Collection (requires 'Collection : null and 'Collection :> System.Collections.Generic.IList<'Element>)> -> unit (requires 'Entity : null and 'Collection : null and 'Collection :> System.Collections.Generic.IList<'Element> and 'Element : null)
override this.SetIndexedCollectionAccessor : Func<'Entity, int, 'Element (requires 'Entity : null and 'Element : null)> * Action<'Entity, int, 'Element (requires 'Entity : null and 'Element : null)> * Action<'Entity, int, 'Element (requires 'Entity : null and 'Element : null)> * Func<int, 'Collection (requires 'Collection : null and 'Collection :> System.Collections.Generic.IList<'Element>)> -> unit (requires 'Entity : null and 'Collection : null and 'Collection :> System.Collections.Generic.IList<'Element> and 'Element : null)
Public Overridable Sub SetIndexedCollectionAccessor(Of TEntity As Class, TCollection As Class, TElement As Class) (get As Func(Of TEntity, Integer, TElement), set As Action(Of TEntity, Integer, TElement), setForMaterialization As Action(Of TEntity, Integer, TElement), createCollection As Func(Of Integer, TCollection))

Jenis parameter

TEntity
TCollection
TElement

Parameter

get
Func<TEntity,Int32,TElement>
set
Action<TEntity,Int32,TElement>
setForMaterialization
Action<TEntity,Int32,TElement>
createCollection
Func<Int32,TCollection>
Atribut

Berlaku untuk