mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-06-28 13:34:32 +08:00
Add unit test
This commit is contained in:
parent
c0ac02bb92
commit
a01e7e930b
@ -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; }
|
||||
}
|
||||
|
||||
|
||||
|
@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user