Class RedbType

Assembly: redb.Core.dll

REDB type entity with direct data storage.
Maps to _types table in PostgreSQL.

public class RedbType : IRedbType

Inheritance

ObjectRedbType

Implements

Properties

DbType

Database type name (e.g., "String", "Long", "Boolean").

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

Id

Unique type identifier.

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

Name

Type name.

[JsonPropertyName("name")]
public string Name { get; set; }

Type1

.NET type full name (e.g., "System.String", "System.Int64").

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

Methods

GetDotNetType()

Get .NET Type from string representation.

public Type? GetDotNetType()

SupportsArrays()

Check if type supports arrays.

public bool SupportsArrays()

ToString()

Returns a string that represents the current object.

public override string ToString()

Constructors

RedbType()

Default constructor for deserialization and mapping.

RedbType(string)

Constructor with name.