EntityLoadInfo EntityLoadInfo Struct

Information required to create an instance of an entity based on a row of data returned from a query.

This type is typically used by database providers (and other extensions). It is generally not used in application code.

Syntax

Declaration

public struct EntityLoadInfoPublic Structure EntityLoadInfo

Inherited Members

Equals(Object),
Equals(Object),
GetHashCode(),
GetHashCode(),
ToString(),
ToString(),
Equals(Object, Object),
Equals(Object, Object),
ReferenceEquals(Object, Object),
ReferenceEquals(Object, Object),
GetType()
GetType()

Constructors summary

Initializes a new instance of the EntityLoadInfo struct.

Properties summary

Gets the row of data that represents this entity.

Methods summary

Materializes the data into an entity instance.

Constructors

  • EntityLoadInfo(ValueBuffer, Func<ValueBuffer, Object>)
    EntityLoadInfo(ValueBuffer, Func(Of ValueBuffer, Object))

    Initializes a new instance of the EntityLoadInfo struct.

    public EntityLoadInfo(ValueBuffer valueBuffer, Func<ValueBuffer, object> materializer)Public Sub New(valueBuffer As ValueBuffer, materializer As Func(Of ValueBuffer, Object))

    Parameters

    • valueBuffer

      The row of data that represents this entity.

    • materializer
      System.Func<T, TResult><ValueBuffer, System.Object>
      System.Func<T, TResult>(Of ValueBuffer, System.Object)

      The method to materialize the data into an entity instance.

Properties

  • ValueBuffer
    ValueBuffer

    Gets the row of data that represents this entity.

    public ValueBuffer ValueBuffer { get; }Public ReadOnly Property ValueBuffer As ValueBuffer

    Property Value

Methods

  • Materialize()
    Materialize()

    Materializes the data into an entity instance.

    public object Materialize()Public Function Materialize As Object

    Returns

    • System.Object
      System.Object

      The entity instance.

Details

Assembly

Microsoft.EntityFrameworkCore.dll