?? 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 + -