修复模块管理不能添加根节点

This commit is contained in:
yubaolee 2017-02-08 08:50:13 +08:00
parent 833914199e
commit 37a6807851

View File

@ -43,8 +43,7 @@ namespace OpenAuth.Repository.Models.Mapping
.HasMaxLength(255) .HasMaxLength(255)
.IsRequired(); .IsRequired();
Property(t => t.ParentId) Property(t => t.ParentId)
.HasColumnName("ParentId") .HasColumnName("ParentId");
.IsRequired();
Property(t => t.IsLeaf) Property(t => t.IsLeaf)
.HasColumnName("IsLeaf") .HasColumnName("IsLeaf")
.IsRequired(); .IsRequired();