using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; using System.Linq; using System.Threading.Tasks; using TTSW.EF; using TTSW.Utils; using TTSW.Constant; using TTSW.Common; using System.IO; namespace TodoAPI2.Models { public class eva_idp_planEntity : BaseEntity2 { public int? create_evaluation_detail_id { get; set; } [MaxLength(1000)] public string develop { get; set; } [MaxLength(1000)] public string development_method { get; set; } public DateTime? start_date { get; set; } public DateTime? end_date { get; set; } [MaxLength(1000)] public string period_text { get; set; } public void SetAutoField(DataContext context) { string temp = ""; if (start_date.HasValue) { temp = MyHelper.GetDateStringForReport(start_date); } if (end_date.HasValue) { temp += " ถึง " + MyHelper.GetDateStringForReport(end_date); } } public void DoAfterInsertUpdate(DataContext context) { } } }