RuntimePropertyBase.SetIndexedCollectionAccessor<TEntity,TCollection,TElement> Método
Definição
Importante
Algumas informações se referem a produtos de pré-lançamento que podem ser substancialmente modificados antes do lançamento. A Microsoft não oferece garantias, expressas ou implícitas, das informações aqui fornecidas.
Essa é uma API interna que dá suporte à infraestrutura de Entity Framework Core e não está sujeita aos mesmos padrões de compatibilidade que as APIs públicas. Ele pode ser alterado ou removido sem aviso prévio em qualquer versão. Você só deve usá-lo diretamente em seu código com extrema cautela e saber que fazer isso pode resultar em falhas de aplicativo ao atualizar para uma nova versão 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))
Parâmetros de tipo
- TEntity
- TCollection
- TElement
Parâmetros
- Atributos