|
|
@ -39,18 +39,18 @@ namespace OrmTest |
|
|
|
DcNull = it.Dc, |
|
|
|
Dc = it.Int |
|
|
|
}).ToSql().Key; |
|
|
|
UValidate.Check(sql, "SELECT \"dc\" AS \"dcnull\" , \"int\" AS \"dc\" FROM \"unitselecttest\"", "Queryable"); |
|
|
|
|
|
|
|
sql = Db.Updateable<UnitSelectTest2>(new UnitSelectTest2()).ToSql().Key; |
|
|
|
UValidate.Check(sql, @"UPDATE ""unitselecttest2"" SET
|
|
|
|
""dc""=@Dc,""intnull""=@IntNull WHERE ""int""=@Int", "Queryable");
|
|
|
|
|
|
|
|
sql = Db.Queryable<Order>().IgnoreColumns(it => it.CreateTime).ToSql().Key; |
|
|
|
UValidate.Check(sql, "SELECT \"id\",\"name\",\"price\",\"customid\" FROM \"order\" ", "Queryable"); |
|
|
|
sql = Db.Queryable<Order>().IgnoreColumns(it => new { it.Id, it.Name }).ToSql().Key; |
|
|
|
UValidate.Check(sql, "SELECT \"price\",\"createtime\",\"customid\" FROM \"order\" ", "Queryable"); |
|
|
|
sql = Db.Queryable<Order>().IgnoreColumns("id").ToSql().Key; |
|
|
|
UValidate.Check(sql, "SELECT \"name\",\"price\",\"createtime\",\"customid\" FROM \"order\" ", "Queryable"); |
|
|
|
// UValidate.Check(sql, "SELECT \"dc\" AS \"dcnull\" , \"int\" AS \"dc\" FROM \"unitselecttest\"", "Queryable");
|
|
|
|
|
|
|
|
// sql = Db.Updateable<UnitSelectTest2>(new UnitSelectTest2()).ToSql().Key;
|
|
|
|
// UValidate.Check(sql, @"UPDATE ""unitselecttest2"" SET
|
|
|
|
//""dc""=@Dc,""intnull""=@IntNull WHERE ""int""=@Int", "Queryable");
|
|
|
|
|
|
|
|
// sql = Db.Queryable<Order>().IgnoreColumns(it => it.CreateTime).ToSql().Key;
|
|
|
|
// UValidate.Check(sql, "SELECT \"id\",\"name\",\"price\",\"customid\" FROM \"order\" ", "Queryable");
|
|
|
|
// sql = Db.Queryable<Order>().IgnoreColumns(it => new { it.Id, it.Name }).ToSql().Key;
|
|
|
|
// UValidate.Check(sql, "SELECT \"price\",\"createtime\",\"customid\" FROM \"order\" ", "Queryable");
|
|
|
|
// sql = Db.Queryable<Order>().IgnoreColumns("id").ToSql().Key;
|
|
|
|
// UValidate.Check(sql, "SELECT \"name\",\"price\",\"createtime\",\"customid\" FROM \"order\" ", "Queryable");
|
|
|
|
|
|
|
|
var cts = IEnumerbleContains.Data(); |
|
|
|
var list2=Db.Queryable<Order>() |
|
|
|