protected override void auxClear()
...{
this.m_strSelect = string.Empty;
}
}
private class Where
...{
private string m_strWhere;
public Where()
...{
this.Clear();
}
public void Add(string name, object val)
...{
if (val == null)
...{
this.Add(name, "null", false);
}
else
...{
this.Add(name, val.ToString(), val is string || val is DateTime);
}
}
private void Add(string name, string val, bool isref)
...{
if (isref)
...{
val = "'" + val + "'";
}
if (this.m_strWhere == string.Empty)
...{
this.m_strWhere = "[" + name + "]=" + val;
}
else
...{
this.m_strWhere += " and [" + name + "]=" + val;
}
}
public override string ToString()
...{
string strRet = string.Empty;
if (this.m_strWhere != string.Empty)
...{
strRet = " Where " + this.m_strWhere;
}
return strRet;
}
public void Clear()
...{
this.m_strWhere = string.Empty;
}
}
#endregion
}