?? whereclause.cs
字號(hào):
?using System;
using Lephone.Data.Dialect;
using Lephone.Data.SqlEntry;
namespace Lephone.Data.Builder.Clause
{
[Serializable]
public class WhereClause : IClause
{
private WhereCondition _ic;
public WhereClause()
{
}
public WhereClause(WhereCondition ic)
{
_ic = ic;
}
public WhereCondition Conditions
{
set { _ic = value; }
get { return _ic; }
}
public string ToSqlText(DataParamterCollection dpc, DbDialect dd)
{
if ( _ic != null )
{
string s = _ic.ToSqlText(dpc, dd);
if (s != null)
{
return (s.Length > 0) ? " Where " + s : "";
}
}
return "";
}
public static implicit operator WhereClause (WhereCondition iwc)
{
return new WhereClause(iwc);
}
}
}
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -