Code optimization

This commit is contained in:
sunkaixuan
2019-05-19 19:58:53 +08:00
parent 4e8d6cce39
commit 6f53e0f76b
3 changed files with 86 additions and 193 deletions

View File

@@ -41,6 +41,8 @@ namespace OrmTest
//Use db
var dt = db.Ado.GetDataTable("select 1");
db.Insertable(new OrderItem() { OrderId = 1, Price = 0 }).ExecuteCommand();
Console.WriteLine("#### SqlSugarClient End ####");
}

View File

@@ -47,6 +47,8 @@ namespace OrmTest
var task8 = Db.Ado.SqlQueryAsync<dynamic>("select 8 as id");
task8.Wait();
UValidate.Check(8, task8.Result[0].id, "ado");
var task9=Db.Ado.SqlQuery<Order, OrderItem>("select * from [order];select * from OrderDetail");
}
}
}