ValueBuffer Struct

Definition

Represents a set of indexed values. Typically used to represent a row of data returned from a database.

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

public struct ValueBuffer
public readonly struct ValueBuffer
[System.Runtime.CompilerServices.IsReadOnly]
public readonly struct ValueBuffer
[System.Runtime.CompilerServices.IsReadOnly]
public readonly struct ValueBuffer : IEquatable<Microsoft.EntityFrameworkCore.Storage.ValueBuffer>
type ValueBuffer = struct
[<System.Runtime.CompilerServices.IsReadOnly>]
type ValueBuffer = struct
Public Structure ValueBuffer
Public Structure ValueBuffer
Implements IEquatable(Of ValueBuffer)
Inheritance
ValueBuffer
Attributes
Implements

Remarks

See Implementation of database providers and extensions for more information and examples.

Constructors

ValueBuffer(IList<Object>)

Initializes a new instance of the ValueBuffer class.

ValueBuffer(IList<Object>, Int32)

Initializes a new instance of the ValueBuffer class.

ValueBuffer(Object[])

Initializes a new instance of the ValueBuffer class.

ValueBuffer(Object[], Int32)

Initializes a new instance of the ValueBuffer class.

Fields

Empty

A buffer with no values in it.

Properties

Count

Gets the number of values in this buffer.

IsEmpty

Gets a value indicating whether the value buffer is empty.

Item[Int32]

Gets the value at a requested index.

Methods

Equals(Object)

Determines if this value buffer is equivalent to a given object (i.e. if they are both value buffers and contain the same values).

Equals(ValueBuffer)

Indicates whether the current object is equal to another object of the same type.

GetHashCode()

Gets the hash code for the value buffer.

WithOffset(Int32)

Creates a new buffer with data starting at the given index in the current buffer.

Applies to