demo20230512/Models/Comment.cs

37 lines
1.1 KiB
C#
Raw Normal View History

2023-05-12 10:20:28 +08:00
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Runtime.Serialization;
using System.Web;
using Newtonsoft.Json;
using Weee.Models.Paramemter;
namespace Weee.Models
{
/// <summary>
/// Caution!
/// the Category string is defined in Certification Company LCA Detail View
/// </summary>
public class Comment
{
public Comment()
{
CreateTime = DateTime.UtcNow;
UpdateTime = DateTime.UtcNow;
IsHistory = false;
}
public int ID { get; set; }
public bool IsHistory { get; set; }
public string Category { get; set; }
public string CommentText { get; set; }
[Column(TypeName="DateTime2")]
public DateTime CreateTime { get; set; }
[Column(TypeName = "DateTime2")]
public DateTime UpdateTime { get; set; }
public int LCAID { get; set; }
[ForeignKey("LCAID")]
[JsonIgnore][IgnoreDataMember]
public virtual LCA CommentTarget { get; set; }
}
}