RuntimePropertyBase.SetIndexedCollectionAccessor<TEntity,TCollection,TElement> Metodo
Definizione
Importante
Alcune informazioni sono relative alla release non definitiva del prodotto, che potrebbe subire modifiche significative prima della release definitiva. Microsoft non riconosce alcuna garanzia, espressa o implicita, in merito alle informazioni qui fornite.
Si tratta di un'API interna che supporta l'infrastruttura Entity Framework Core e non è soggetta agli stessi standard di compatibilità delle API pubbliche. Può essere modificato o rimosso senza preavviso in alcuna versione. È consigliabile usarlo direttamente nel codice con estrema cautela e sapere che questa operazione può causare errori dell'applicazione durante l'aggiornamento a una nuova versione Entity Framework Core.
[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))
Parametri di tipo
- TEntity
- TCollection
- TElement
Parametri
- Attributi