更改null操作

This commit is contained in:
橙子
2023-01-05 20:32:58 +08:00
parent efbf799218
commit b7c9b84449
25 changed files with 71 additions and 76 deletions

View File

@@ -7,8 +7,8 @@ namespace Yi.Framework.Model.RABC.Entitys
[SugarTable("Student")]
public class StudentEntity : IEntity<Guid>, IMultiTenant
{
public string Name { get; set; }
public string Remark { get; set; }
public string? Name { get; set; }
public string? Remark { get; set; }
[SugarColumn(ColumnName = "Id", IsPrimaryKey = true)]
public Guid Id { get; set; }

View File

@@ -146,7 +146,7 @@ namespace Yi.Framework.Model.RABC.Entitys
/// <summary>
/// 构建密码MD5盐值加密
/// </summary>
public UserEntity BuildPassword(string password = null)
public UserEntity BuildPassword(string? password = null)
{
//如果不传值那就把自己的password当作传进来的password
if (password == null)