📄 notclause.cs
字号:
using System;
using Lephone.Data.Dialect;
using Lephone.Data.SqlEntry;
namespace Lephone.Data.Builder.Clause
{
[Serializable]
public class NotClause : WhereCondition
{
private readonly WhereCondition _ic;
public NotClause(WhereCondition ic)
{
_ic = ic;
}
public override bool SubClauseNotEmpty
{
get
{
if (_ic != null)
{
return _ic.SubClauseNotEmpty;
}
return false;
}
}
public override string ToSqlText(DataParamterCollection dpc, DbDialect dd)
{
if (_ic.SubClauseNotEmpty)
{
return string.Format("( Not ({0}) )", _ic.ToSqlText(dpc, dd));
}
return "";
}
/*
public override string ToString()
{
return string.Format("( Not ({0}) )", _ic);
}
*/
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -