Add unit test

This commit is contained in:
sunkaixuan 2023-05-08 21:31:29 +08:00
parent c0ac02bb92
commit a01e7e930b
2 changed files with 6 additions and 1 deletions

View File

@ -12,7 +12,7 @@ namespace SqlSugarDemo
public int id { set; get; }
public string name { set; get; }
public DateTime create_time { set; get; }
public DateTime? create_time { set; get; }
}

View File

@ -55,6 +55,11 @@ namespace OrmTest
{
throw new Exception("unit error");
}
var list2=db.Queryable<poetry_video_comment>()
.Select(it => new
{
y= it.UserInfo.create_time .Value.ToString("yyyy-MM-dd")
}).ToList();
}
}
}