mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-08-24 07:22:57 +08:00
Update Demo
This commit is contained in:
parent
44aa946a09
commit
00e0e1731a
Binary file not shown.
@ -184,6 +184,7 @@ namespace OrmTest.Demo
|
||||
var getDay1List = db.Queryable<Student>().Where(it => it.CreateTime.Value.Hour == 1).ToList();
|
||||
var getDateAdd = db.Queryable<Student>().Where(it => it.CreateTime.Value.AddDays(1) == DateTime.Now).ToList();
|
||||
var getDateIsSame = db.Queryable<Student>().Where(it => SqlFunc.DateIsSame(DateTime.Now, DateTime.Now, DateType.Hour)).ToList();
|
||||
var test1 = db.Queryable<Student>().Distinct().Select(it => new Student { Name = it.Name }).ToList();
|
||||
}
|
||||
public static void Page()
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user