mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-09-23 04:23:47 +08:00
Update OrderByPropertyName
This commit is contained in:
@@ -1080,6 +1080,14 @@ namespace SqlSugar
|
|||||||
{
|
{
|
||||||
if (orderPropertyName.HasValue())
|
if (orderPropertyName.HasValue())
|
||||||
{
|
{
|
||||||
|
if (orderPropertyName.Contains(","))
|
||||||
|
{
|
||||||
|
foreach (var item in orderPropertyName.Split(','))
|
||||||
|
{
|
||||||
|
this.OrderByPropertyName(item,orderByType);
|
||||||
|
}
|
||||||
|
return this;
|
||||||
|
}
|
||||||
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
|
||||||
|| it.PropertyName?.EqualCase(orderPropertyName)==true))
|
|| it.PropertyName?.EqualCase(orderPropertyName)==true))
|
||||||
|
Reference in New Issue
Block a user