修改模型,取消外键关联
This commit is contained in:
1 parent
45bc46a828
commit
d23544c9d8
27 files changed
+22
-48
No files matched your search
@@ -16,8 +16,6 @@ namespace HHWMS.Web.Models
|
||||
[Display(Name = "Inventory.ReceiptCode")]
|
||||
public int HeaderId { get; set; }
|
||||
|
||||
public ReceiptHeader ReceiptHeader { get; set; }
|
||||
|
||||
[Display(Name = "Task.ZoneCode", Description = "库区")]
|
||||
[StringLength(50, ErrorMessage = "Validate.{0}stringmax{1}")]
|
||||
public string ZoneCode { get; set; }
|
||||
|
||||
@@ -10,7 +10,6 @@ namespace HHWMS.Web.Models
|
||||
public class ReceiptDetailHistory : BasePoco
|
||||
{
|
||||
[Key]
|
||||
[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
|
||||
public new int ID { get; set; }
|
||||
|
||||
[Display(Name = "Inventory.ReceiptCode")]
|
||||
|
||||
@@ -53,7 +53,5 @@ namespace HHWMS.Web.Models
|
||||
|
||||
[Display(Name = "_Admin.Remark", Description = "备注")]
|
||||
public string Remark { get; set; }
|
||||
|
||||
public ICollection<ReceiptDetail> ReceiptDetails { get; set; }
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user