Webiant Logo Webiant Logo
  1. No results found.

    Try your search with a different keyword or use * as a wildcard.

ForumTopic.cs

namespace Nop.Core.Domain.Forums;

/// 
/// Represents a forum topic
/// 
public partial class ForumTopic : BaseEntity
{
    /// 
    /// Gets or sets the forum identifier
    /// 
    public int ForumId { get; set; }

    /// 
    /// Gets or sets the customer identifier
    /// 
    public int CustomerId { get; set; }

    /// 
    /// Gets or sets the topic type identifier
    /// 
    public int TopicTypeId { get; set; }

    /// 
    /// Gets or sets the subject
    /// 
    public string Subject { get; set; }

    /// 
    /// Gets or sets the number of posts
    /// 
    public int NumPosts { get; set; }

    /// 
    /// Gets or sets the number of views
    /// 
    public int Views { get; set; }

    /// 
    /// Gets or sets the last post identifier
    /// 
    public int LastPostId { get; set; }

    /// 
    /// Gets or sets the last post customer identifier
    /// 
    public int LastPostCustomerId { get; set; }

    /// 
    /// Gets or sets the last post date and time
    /// 
    public DateTime? LastPostTime { get; set; }

    /// 
    /// Gets or sets the date and time of instance creation
    /// 
    public DateTime CreatedOnUtc { get; set; }

    /// 
    /// Gets or sets the date and time of instance update
    /// 
    public DateTime UpdatedOnUtc { get; set; }

    /// 
    /// Gets or sets the forum topic type
    /// 
    public ForumTopicType ForumTopicType
    {
        get => (ForumTopicType)TopicTypeId;
        set => TopicTypeId = (int)value;
    }
}