Skip to content

UserLikePostRelationDao

Namespace: SlottyMedia.Database.Daos

This class represents the User_Like_Post_Relation table in the database.

public class UserLikePostRelationDao : Supabase.Postgrest.Models.BaseModel

Inheritance Object → BaseModel → UserLikePostRelationDao

Properties

UserLikePostRelationId

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

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

Property Value

Nullable<Guid>

UserId

The ID of the User who liked the Post. This is a Foreign Key to the User Table.

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

Property Value

Nullable<Guid>

PostId

The ID of the Post that was liked. This is a Foreign Key to the Post Table.

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

Property Value

Nullable<Guid>

CreatedAt

The Date and Time the User_Like_Post_Relation was created.

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

UserLikePostRelationDao()

The default constructor.

public UserLikePostRelationDao()

UserLikePostRelationDao(Guid, Guid)

The constructor with parameters.

public UserLikePostRelationDao(Guid userId, Guid postId)

Parameters

userId Guid
The UserId

postId Guid
The PostId

Methods

ToString()

The ToString method returns a string representation of the object.

public string ToString()

Returns

String