mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-09-23 04:23:47 +08:00
Synchronization code
This commit is contained in:
@@ -99,6 +99,11 @@ namespace SqlSugar
|
|||||||
name=name.Split('=').First();
|
name=name.Split('=').First();
|
||||||
}
|
}
|
||||||
if (!name.Contains(SqlTranslationLeft)) return name;
|
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;
|
return name == null ? string.Empty : Regex.Match(name, @".*" + "\\" + SqlTranslationLeft + "(.*?)" + "\\" + SqlTranslationRight + "").Groups[1].Value;
|
||||||
}
|
}
|
||||||
public virtual string GetPackTable(string sql, string shortName)
|
public virtual string GetPackTable(string sql, string shortName)
|
||||||
|
Reference in New Issue
Block a user