mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-08-23 22:11:36 +08:00
Add unit test
This commit is contained in:
parent
667c30ecdc
commit
0e72d04edd
@ -94,9 +94,20 @@ namespace OrmTest
|
|||||||
{
|
{
|
||||||
throw new Exception("unit error");
|
throw new Exception("unit error");
|
||||||
}
|
}
|
||||||
|
db.CodeFirst.InitTables<Unitasdfafasx>();
|
||||||
|
db.Queryable<Unitasdfafasx>().ToList();
|
||||||
|
db.Queryable<Unitasdfafasx>()
|
||||||
|
.Select(x1111 => new
|
||||||
|
{
|
||||||
|
z=SqlFunc.Subqueryable<Unitasdfafasx>().Select(s=>s.id)
|
||||||
|
}).ToList();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[SugarTable("[1.1.dsfadsaf]")]
|
||||||
|
public class Unitasdfafasx
|
||||||
|
{
|
||||||
|
public string id { get; set; }
|
||||||
|
}
|
||||||
public class UnitDateTimeOffset
|
public class UnitDateTimeOffset
|
||||||
{
|
{
|
||||||
public DateTimeOffset timeOffset { get; set; }
|
public DateTimeOffset timeOffset { get; set; }
|
||||||
|
Loading…
Reference in New Issue
Block a user