using System.ComponentModel.DataAnnotations.Schema; using Marco.Pms.Model.Employees; using Marco.Pms.Model.Utilities; using Microsoft.AspNetCore.Mvc.ModelBinding.Validation; namespace Marco.Pms.Model.Activities { public class TaskComment : TenantTest { public long Id { get; set; } public long TaskAllocationId { get; set; } [ValidateNever] [ForeignKey(nameof(TaskAllocationId))] public TaskAllocation? TaskAllocation { get; set; } public DateTime CommentDate { get; set; } public string Comment { get; set; } public int CommentedBy { get; set; } [ForeignKey("CommentedBy")] [ValidateNever] public Employee? Employee { get; set; } } }