mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-04-24 18:04:52 +08:00
Update unit test
This commit is contained in:
parent
62463c6970
commit
16cdf5ee70
@ -16,6 +16,17 @@ namespace OrmTest
|
||||
var list=db.Queryable<Order>()
|
||||
.GroupBy(x => new { CreateTime = x.CreateTime.ToString("yyyy-MM"),x.Name })
|
||||
.Select(x => new { CreateTime = x.CreateTime.ToString("yyyy-MM") }).ToList();
|
||||
db.CodeFirst.InitTables<Unitadfaint21>();
|
||||
db.Insertable(new Unitadfaint21() { id = 1 , id2=22 }).ExecuteCommand();
|
||||
var list2 = db.Queryable<Unitadfaint21>().ToList();
|
||||
}
|
||||
|
||||
public class Unitadfaint21
|
||||
{
|
||||
[SugarColumn(ColumnDataType ="int")]
|
||||
public long? id { get; set; }
|
||||
[SugarColumn(ColumnDataType = "int")]
|
||||
public long id2 { get; set; }
|
||||
}
|
||||
public class Unitasfa1sadfa
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user