37 lines
1.1 KiB
C#
37 lines
1.1 KiB
C#
|
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; }
|
|||
|
}
|
|||
|
}
|