修改模型,取消外键关联

This commit is contained in:
zhougf committed 2024-12-24 19:08:25 +08:00
1 parent 45bc46a828
commit d23544c9d8
27 files changed
+22 -48

No files matched your search

+1 -1
View File
@@ -9,7 +9,6 @@ namespace HHWMS.Web.Models
public class TaskDetailHistory : BasePoco
{
[Key]
[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
public new int ID { get; set; }
[Display(Name = "Task.TaskNo", Description = "任务号")]
@@ -31,6 +30,7 @@ namespace HHWMS.Web.Models
public string MaterialName { get; set; }
[Display(Name = "Inventory.MaterialSpec", Description = "物料规格")]
[StringLength(50, ErrorMessage = "Validate.{0}stringmax{1}")]
public string MaterialSpec { get; set; }
[Display(Name = "Inventory.MaterialUnit", Description = "单位")]