Browse Source

Update Oracle

pull/12/MERGE
sunkaixuan 7 years ago
parent
commit
60b0ac8147
  1. 2
      Src/Asp.Net/OracleTest/Demos/1_Query.cs
  2. 2
      Src/Asp.Net/OracleTest/Program.cs

2
Src/Asp.Net/OracleTest/Demos/1_Query.cs

@ -157,7 +157,7 @@ namespace OrmTest.Demo
var getAll = db.Queryable<Student>().ToList();
var getAllOrder = db.Queryable<Student>().OrderBy(it => it.Id).OrderBy(it => it.Name, OrderByType.Desc).ToList();
var getId = db.Queryable<Student>().Select(it => it.Id).ToList();
// var getNew = db.Queryable<Student>().Where(it => it.Id == 1).Select(it => new { id = SqlFunc.IIF(it.Id == 0, 1, it.Id), it.Name, it.SchoolId }).ToList();
var getNew = db.Queryable<Student>().Where(it => it.Id == 1).Select(it => new { id = SqlFunc.IIF(it.Id == 0, 1, it.Id), it.Name, it.SchoolId }).ToList();
var getAllNoLock = db.Queryable<Student>().With(SqlWith.NoLock).ToList();
var getByPrimaryKey = db.Queryable<Student>().InSingle(2);
var getSingleOrDefault = db.Queryable<Student>().Single();

2
Src/Asp.Net/OracleTest/Program.cs

@ -20,7 +20,7 @@ namespace OrmTest
// throw new Exception(" to be continued ,It will take another week.");
// /***Unit Test***/
//new Select(1).Init();
new Select(1).Init();
//new Field(1).Init();
//new Where(1).Init();
//new Method(1).Init();

Loading…
Cancel
Save