BestQA.Domain/Comments/CommentCreatedEvent.cs

(完整代码) 1KB

// ***********************************************************************
// Assembly         : BestQA.Domain
// Author           : yubaolee
// Created          : 07-10-2015
//
// Last Modified By : yubaolee
// Last Modified On : 07-10-2015
// ***********************************************************************
// <copyright file="CommentCreatedEvent.cs" company="Microsoft">
//     Copyright (c) Microsoft. All rights reserved.
// </copyright>
// <summary>添加新评论</summary>
// ***********************************************************************
using System;
using ENode.Eventing;

namespace BestQA.Domain.Comments
{
    [Serializable]
    public class CommentCreatedEvent : DomainEvent<string>
    {
        public string CommentTo { get; set; }
        public string Content { get; set; }
        public string UserId { get; set; }

        private CommentCreatedEvent() { }

        public CommentCreatedEvent(Comment comment,string content, string commentto, string userid):base(comment)
        {
            CommentTo = commentto;
            Content = content;
            UserId = userid;
        }
    }
}

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

AI 解读

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

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