Skip to content

ForumDao

Namespace: SlottyMedia.Database.Daos

This class represents the Forum table in the database.

public class ForumDao : Supabase.Postgrest.Models.BaseModel

Inheritance Object → BaseModel → ForumDao

Properties

ForumId

The ID of the Forum. This is the Primary Key. It is auto-generated.

public Nullable<Guid> ForumId { get; set; }

Property Value

Nullable<Guid>

CreatorUser

The User who created the Forum. This is a Reference to the User Table.

public UserDao CreatorUser { get; set; }

Property Value

UserDao

CreatorUserId

The ID of the User who created the Forum. This is a Foreign Key to the User Table.

public Nullable<Guid> CreatorUserId { get; set; }

Property Value

Nullable<Guid>

ForumTopic

The Title of the Forum.

public string ForumTopic { get; set; }

Property Value

String

post_count

The Count of Posts in the Forum.

public Nullable<int> post_count { get; set; }

Property Value

Nullable<Int32>

CreatedAt

Created Date and Time of the Forum.

public DateTimeOffset CreatedAt { get; set; }

Property Value

DateTimeOffset

BaseUrl

public string BaseUrl { get; set; }

Property Value

String

RequestClientOptions

public ClientOptions RequestClientOptions { get; set; }

Property Value

ClientOptions

TableName

public string TableName { get; }

Property Value

String

PrimaryKey

public Dictionary<PrimaryKeyAttribute, object> PrimaryKey { get; }

Property Value

Dictionary<PrimaryKeyAttribute, Object>

Constructors

ForumDao()

The default constructor.

public ForumDao()

ForumDao(Guid, String)

The constructor with parameters.

public ForumDao(Guid creatorUserId, string forumTopic)

Parameters

creatorUserId Guid
The Id of the User who created the Forum

forumTopic String
The Topic of the Forum

Methods

ToString()

The ToString method returns a string representation of the object.

public string ToString()

Returns

String