mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-07-31 15:56:25 +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)
|
||||
{
|
||||
if (orderPropertyName != null)
|
||||
if (orderPropertyName.HasValue())
|
||||
{
|
||||
if (this.Context.EntityMaintenance.GetEntityInfoWithAttr(typeof(T)).Columns.Any(it =>
|
||||
it.DbColumnName?.EqualCase(orderPropertyName)==true
|
||||
|
Loading…
Reference in New Issue
Block a user