mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-11-08 02:14:53 +08:00
Update oscar & kdbndp exp to sql
This commit is contained in:
@@ -38,6 +38,10 @@ namespace SqlSugar
|
|||||||
|
|
||||||
public override string GetTranslationColumnName(string propertyName)
|
public override string GetTranslationColumnName(string propertyName)
|
||||||
{
|
{
|
||||||
|
if (propertyName.Contains(".") && !propertyName.Contains(SqlTranslationLeft))
|
||||||
|
{
|
||||||
|
return string.Join(".", propertyName.Split('.').Select(it => $"{SqlTranslationLeft}{it.ToUpper()}{SqlTranslationRight}"));
|
||||||
|
}
|
||||||
if (propertyName.Contains(SqlTranslationLeft)) return propertyName;
|
if (propertyName.Contains(SqlTranslationLeft)) return propertyName;
|
||||||
else
|
else
|
||||||
return SqlTranslationLeft + propertyName.ToUpper() + SqlTranslationRight;
|
return SqlTranslationLeft + propertyName.ToUpper() + SqlTranslationRight;
|
||||||
|
|||||||
@@ -45,6 +45,10 @@ namespace SqlSugar
|
|||||||
}
|
}
|
||||||
public override string GetTranslationColumnName(string propertyName)
|
public override string GetTranslationColumnName(string propertyName)
|
||||||
{
|
{
|
||||||
|
if (propertyName.Contains(".") && !propertyName.Contains(SqlTranslationLeft))
|
||||||
|
{
|
||||||
|
return string.Join(".", propertyName.Split('.').Select(it => $"{SqlTranslationLeft}{it.ToUpper()}{SqlTranslationRight}"));
|
||||||
|
}
|
||||||
if (propertyName.Contains(SqlTranslationLeft)) return propertyName;
|
if (propertyName.Contains(SqlTranslationLeft)) return propertyName;
|
||||||
else
|
else
|
||||||
return SqlTranslationLeft + propertyName.ToUpper() + SqlTranslationRight;
|
return SqlTranslationLeft + propertyName.ToUpper() + SqlTranslationRight;
|
||||||
|
|||||||
Reference in New Issue
Block a user