Class RedbValue

Assembly: redb.Core.dll

REDB value entity with direct data storage.
Maps to _values table in PostgreSQL.
Stores field values for objects (EAV pattern).

public class RedbValue

Inheritance

ObjectRedbValue

Properties

ArrayIndex

Array index or dictionary key.

[JsonPropertyName("array_index")]
public string? ArrayIndex { get; set; }

ArrayParentId

Parent value ID for nested structures (arrays, dictionaries).

[JsonPropertyName("array_parent_id")]
public long? ArrayParentId { get; set; }

Boolean

Boolean value.

[JsonPropertyName("boolean")]
public bool? Boolean { get; set; }

ByteArray

Binary data value.

[JsonPropertyName("byte_array")]
public byte[]? ByteArray { get; set; }

DateTimeOffset

DateTime with timezone value.

[JsonPropertyName("date_time_offset")]
public DateTimeOffset? DateTimeOffset { get; set; }

Double

Double value.

[JsonPropertyName("double")]
public double? Double { get; set; }

Guid

GUID value.

[JsonPropertyName("guid")]
public Guid? Guid { get; set; }

Id

Unique value identifier.

[JsonPropertyName("id")]
public long Id { get; set; }

IdObject

Object identifier this value belongs to.

[JsonPropertyName("id_object")]
public long IdObject { get; set; }

IdStructure

Structure (field definition) identifier.

[JsonPropertyName("id_structure")]
public long IdStructure { get; set; }

IsArrayElement

Check if this is an array/collection element.

[JsonIgnore]
public bool IsArrayElement { get; }

ListItem

List item reference ID.

[JsonPropertyName("list_item")]
public long? ListItem { get; set; }

Long

Long integer value.

[JsonPropertyName("long")]
public long? Long { get; set; }

Numeric

Decimal value (high precision).

[JsonPropertyName("numeric")]
public decimal? Numeric { get; set; }

Object

Object reference ID.

[JsonPropertyName("object")]
public long? Object { get; set; }

String

String value.

[JsonPropertyName("string")]
public string? String { get; set; }

Methods

ToString()

Returns a string that represents the current object.

public override string ToString()

Constructors

RedbValue()

Default constructor for deserialization and mapping.