Support schema

This commit is contained in:
sunkaixuan
2017-11-14 10:23:36 +08:00
parent e2fc28a72a
commit aac01fdb6e

View File

@@ -44,7 +44,14 @@ namespace SqlSugar
{
return name;
}
return SqlTranslationLeft + name + SqlTranslationRight;
if (name.Contains("."))
{
return string.Join(".", name.Split('.').Select(it => SqlTranslationLeft + it + SqlTranslationRight));
}
else
{
return SqlTranslationLeft + name + SqlTranslationRight;
}
}
public virtual string GetTranslationColumnName(string entityName, string propertyName)
{