mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-10-26 02:39:14 +08:00
Update unit test
This commit is contained in:
@@ -16,6 +16,17 @@ namespace OrmTest
|
|||||||
var list=db.Queryable<Order>()
|
var list=db.Queryable<Order>()
|
||||||
.GroupBy(x => new { CreateTime = x.CreateTime.ToString("yyyy-MM"),x.Name })
|
.GroupBy(x => new { CreateTime = x.CreateTime.ToString("yyyy-MM"),x.Name })
|
||||||
.Select(x => new { CreateTime = x.CreateTime.ToString("yyyy-MM") }).ToList();
|
.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
|
public class Unitasfa1sadfa
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user