mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-04-05 17:37:58 +08:00
Update oscar & kdbndp exp to sql
This commit is contained in:
parent
6e985d8834
commit
dac459155d
@ -38,6 +38,10 @@ namespace SqlSugar
|
||||
|
||||
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;
|
||||
else
|
||||
return SqlTranslationLeft + propertyName.ToUpper() + SqlTranslationRight;
|
||||
|
@ -45,6 +45,10 @@ namespace SqlSugar
|
||||
}
|
||||
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;
|
||||
else
|
||||
return SqlTranslationLeft + propertyName.ToUpper() + SqlTranslationRight;
|
||||
|
Loading…
Reference in New Issue
Block a user