mirror of
https://github.com/nsnail/FreeSql.git
synced 2025-06-19 12:28:15 +08:00
- 优化 AsTable 自动分表 Where Equal 判断;#1104
This commit is contained in:
@ -222,8 +222,8 @@ namespace FreeSql.DataAnnotations
|
||||
new Regex($@"{cn}\s*(<|<=|>|>=)\s*'([^']+)'\s*and\s*{cn}\s*(<|<=|>|>=)\s*'([^']+)'", RegexOptions.IgnoreCase), //预留暂时不用
|
||||
new Regex($@"{cn}\s*(<|<=|>|>=)\s*{qpn}([\w_]+)\s*and\s*{cn}\s*(<|<=|>|>=)\s*{qpn}([\w_]+)", RegexOptions.IgnoreCase),
|
||||
|
||||
new Regex($@"{cn}\s*(<|<=|>|>=)\s*'([^']+)'", RegexOptions.IgnoreCase), //预留暂时不用
|
||||
new Regex($@"{cn}\s*(<|<=|>|>=)\s*{qpn}([\w_]+)", RegexOptions.IgnoreCase),
|
||||
new Regex($@"{cn}\s*(=|<|<=|>|>=)\s*'([^']+)'", RegexOptions.IgnoreCase), //预留暂时不用
|
||||
new Regex($@"{cn}\s*(=|<|<=|>|>=)\s*{qpn}([\w_]+)", RegexOptions.IgnoreCase),
|
||||
};
|
||||
});
|
||||
}
|
||||
@ -337,6 +337,8 @@ namespace FreeSql.DataAnnotations
|
||||
{
|
||||
switch (m.Groups[1].Value)
|
||||
{
|
||||
case "=":
|
||||
return GetTableNamesByColumnValueRange(val1, val1);
|
||||
case "<":
|
||||
val1 = val1.AddSeconds(-1);
|
||||
return GetTableNamesByColumnValueRange(_beginTime, val1);
|
||||
|
Reference in New Issue
Block a user