NotStatementLogic 类
语句否定逻辑
public class NotStatementLogic : AtomicLogic, ISqlLogic, ISqlFragment
- 继承
-
NotStatementLogic
- 实现
- 继承成员
- 扩展方法
方法
CheckNotLength(string)
检查是否含Not(返回长度以便切除)
public static int CheckNotLength(string statement)
参数
statement
string
返回
CreateLogic(string)
构造否定逻辑(not开头负负得正)
public static AtomicLogic CreateLogic(string statement)
参数
statement
string
返回
Not()
否定逻辑
public override AtomicLogic Not()
返回
NotRegex()
[GeneratedRegex("^\\W*NOT\\W+", RegexOptions.IgnoreCase)]
public static Regex NotRegex()
返回
备注
Pattern explanation:
○ Match if at the beginning of the string.
○ Match any character other than a word character atomically any number of times.
○ Match a character in the set [Nn].
○ Match a character in the set [Oo].
○ Match a character in the set [Tt].
○ Match any character other than a word character atomically at least once.
TryWrite(ISqlEngine, StringBuilder)
拼写sql
public override bool TryWrite(ISqlEngine engine, StringBuilder sql)
参数
engine
ISqlEnginesql
StringBuilder