mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-04-24 18:04:52 +08:00
Synchronization code
This commit is contained in:
parent
80fdd97cfe
commit
4b9af0369a
@ -99,6 +99,11 @@ namespace SqlSugar
|
||||
name=name.Split('=').First();
|
||||
}
|
||||
if (!name.Contains(SqlTranslationLeft)) return name;
|
||||
if (name.StartsWith(SqlTranslationLeft) && name.EndsWith(SqlTranslationRight))
|
||||
{
|
||||
var result= name.TrimStart(Convert.ToChar(SqlTranslationLeft)).TrimEnd(Convert.ToChar(SqlTranslationRight));
|
||||
return result;
|
||||
}
|
||||
return name == null ? string.Empty : Regex.Match(name, @".*" + "\\" + SqlTranslationLeft + "(.*?)" + "\\" + SqlTranslationRight + "").Groups[1].Value;
|
||||
}
|
||||
public virtual string GetPackTable(string sql, string shortName)
|
||||
|
Loading…
Reference in New Issue
Block a user