BestQA.Domain/Model/Post.cs

(开头部分) 2KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

// ***********************************************************************
// Assembly         : BestQA.Domain
// Author           : yubaolee
// Created          : 06-18-2015
//
// Last Modified By : yubaolee
// Last Modified On : 06-18-2015
// ***********************************************************************
// <copyright file="Post.cs" company="Microsoft">
//     Copyright (c) Microsoft. All rights reserved.
// </copyright>
// <summary>Post类为系统问题、回答、回复的基类</summary>
// ***********************************************************************
using System;
using System.Collections.Generic;
using BestQA.Domain.Comments;
using ENode.Domain;
using Lee.Infrastructure;

namespace BestQA.Domain.Model
{
    [Serializable]
    public abstract class Post : AggregateRoot<string>
    {
      
        /// <summary>
        /// 内容
        /// </summary>
        protected string _content;
        /// <summary>
        /// 支持数
        /// </summary>
        protected int _supportCnt;
        /// <summary>
        /// 反对数
        /// </summary>
        protected int _opposeCnt;
        /// <summary>
        /// 创建时间
        /// </summary>
        protected DateTime _createTime;
        /// <summary>
        /// 创建人
        /// </summary>
        protected string _userId;
       
        /// <summary>
        /// 评论
        /// </summary>
        protected IList<string> _commentIds; 

        protected Post(string id)
            : base(id)
        {
        }

        protected Post(string id, string content, string userid)
            :base(id)
        {
            _content = content;
后面还有 34 行代码,解锁后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明

AI 解读

登录后可用,每次 10 积分,解读结果公开显示在下面。

还没有人解读过这个文件。