修复codefirst

This commit is contained in:
陈淳
2022-10-19 19:10:48 +08:00
parent 9aaf363584
commit 0755a4026a
15 changed files with 34 additions and 32 deletions

View File

@@ -12,13 +12,13 @@ namespace Yi.Framework.Model.Models
/// 看好啦ORM精髓导航属性
///</summary>
[Navigate(typeof(UserRoleEntity), nameof(UserRoleEntity.UserId), nameof(UserRoleEntity.RoleId))]
public List<RoleEntity> Roles { get; set; }
public List<RoleEntity>? Roles { get; set; }
[Navigate(typeof(UserPostEntity), nameof(UserPostEntity.UserId), nameof(UserPostEntity.PostId))]
public List<PostEntity> Posts { get; set; }
public List<PostEntity>? Posts { get; set; }
[Navigate( NavigateType.OneToOne,nameof(DeptId))]
public DeptEntity Dept { get; set; }
public DeptEntity? Dept { get; set; }
/// <summary>
/// 构建密码MD5盐值加密