mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-07-15 14:04:44 +08:00
Oracle Sqlqueryable Page bug
This commit is contained in:
parent
7dd3fcc254
commit
e45cf7d6e6
@ -140,6 +140,7 @@ namespace OrmTest.Demo
|
||||
var t1 = db.Ado.SqlQuery<string>("select 'a' from dual");
|
||||
var t2 = db.Ado.GetInt("select 1 from dual");
|
||||
var t3 = db.Ado.GetDataTable("select 1 as id from dual");
|
||||
var sqlPage = db.SqlQueryable<Student>("select * from student").ToPageList(1, 2);
|
||||
db.Ado.CommitTran();
|
||||
//more
|
||||
//db.Ado.GetXXX...
|
||||
|
@ -401,7 +401,7 @@ namespace SqlSugar
|
||||
public ISugarQueryable<T> SqlQueryable<T>(string sql) where T : class, new()
|
||||
{
|
||||
var sqlBuilder = InstanceFactory.GetSqlbuilder(this.Context.CurrentConnectionConfig);
|
||||
return this.Context.Queryable<T>().AS(sqlBuilder.GetPackTable(sql, sqlBuilder.GetDefaultShortName())).With(SqlWith.Null).Select("*");
|
||||
return this.Context.Queryable<T>().AS(sqlBuilder.GetPackTable(sql, sqlBuilder.GetDefaultShortName())).With(SqlWith.Null).Select(sqlBuilder.GetDefaultShortName()+".*");
|
||||
}
|
||||
#endregion
|
||||
|
||||
|
Binary file not shown.
Loading…
Reference in New Issue
Block a user