Class RedbUserRole

Assembly: redb.Core.dll

REDB user-role association entity with direct data storage.
Maps to _users_roles table in PostgreSQL.

public class RedbUserRole : IRedbUserRole

Inheritance

ObjectRedbUserRole

Implements

Properties

Id

Unique association identifier.

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

IdRole

Role identifier.

[JsonPropertyName("id_role")]
public long IdRole { get; set; }

IdUser

User identifier.

[JsonPropertyName("id_user")]
public long IdUser { get; set; }

Methods

ToString()

Returns a string that represents the current object.

public override string ToString()

Constructors

RedbUserRole()

Default constructor for deserialization and mapping.

RedbUserRole(long, long)

Constructor with user and role IDs.