PostsDao
Namespace: SlottyMedia.Database.Daos
This class represents the Posts table in the database.
public class PostsDao : Supabase.Postgrest.Models.BaseModel
Inheritance Object → BaseModel → PostsDao
Properties
PostId
The ID of the Post. This is the Primary Key. It is auto-generated.
public Nullable<Guid> PostId { get; set; }
Property Value
UserId
The ID of the User who created the Post. This is a Foreign Key to the User Table.
public Nullable<Guid> UserId { get; set; }
Property Value
Forum
The Forum the Post is associated with. This is a Reference to the Forum Table. It is a Foreign Key. Be aware, that this Field will not be filled when you insert the Post into the Database.
public ForumDao Forum { get; set; }
Property Value
ForumId
The ID of the Forum the Post is associated with. This is a Foreign Key to the Forum Table.
public Nullable<Guid> ForumId { get; set; }
Property Value
Headline
The Headline of the Post.
public string Headline { get; set; }
Property Value
Content
The Content of the Post.
public string Content { get; set; }
Property Value
CreatedAt
The Date and Time the Post was created.
public DateTimeOffset CreatedAt { get; set; }
Property Value
BaseUrl
public string BaseUrl { get; set; }
Property Value
RequestClientOptions
public ClientOptions RequestClientOptions { get; set; }
Property Value
ClientOptions
TableName
public string TableName { get; }
Property Value
PrimaryKey
public Dictionary<PrimaryKeyAttribute, object> PrimaryKey { get; }
Property Value
Dictionary<PrimaryKeyAttribute, Object>
Constructors
PostsDao()
The default constructor.
public PostsDao()
PostsDao(Guid, Guid, String, String)
The constructor with parameters.
public PostsDao(Guid userId, Guid forumId, string headline, string content)
Parameters
userId Guid
The UserId of the Post
forumId Guid
The ForumId of the Post
headline String
The Headline of the Post
content String
The Content of the Post
Methods
ToString()
The ToString method returns a string representation of the object.
public string ToString()