mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-08-01 10:10:16 +08:00
Update OrderByPropertyName
This commit is contained in:
parent
3e938d0dca
commit
8f5a13ef6e
@ -1078,7 +1078,7 @@ namespace SqlSugar
|
|||||||
}
|
}
|
||||||
public ISugarQueryable<T> OrderByPropertyName(string orderPropertyName, OrderByType? orderByType = null)
|
public ISugarQueryable<T> OrderByPropertyName(string orderPropertyName, OrderByType? orderByType = null)
|
||||||
{
|
{
|
||||||
if (orderPropertyName != null)
|
if (orderPropertyName.HasValue())
|
||||||
{
|
{
|
||||||
if (this.Context.EntityMaintenance.GetEntityInfoWithAttr(typeof(T)).Columns.Any(it =>
|
if (this.Context.EntityMaintenance.GetEntityInfoWithAttr(typeof(T)).Columns.Any(it =>
|
||||||
it.DbColumnName?.EqualCase(orderPropertyName)==true
|
it.DbColumnName?.EqualCase(orderPropertyName)==true
|
||||||
|
Loading…
Reference in New Issue
Block a user