/// <summary> /// 设置更新的条件信息。 /// </summary> /// <param name="content"></param> public void Where(params object[] content) { WhereBlock wb = new WhereBlock(); wb.Content.AddRange(content); _Blocks.Add(wb); }
/// <summary> /// 设置 SELECT 的 WHERE 子句。 /// </summary> /// <param name="content">WHERE条件内容。</param> /// <returns></returns> public SelectBlock Where(params object[] content) { WhereBlock wb = new WhereBlock(); wb.Content.AddRange(content); Blocks.Add(wb); return(this); }
/// <summary> /// 设置命令的 Where 条件信息。 /// </summary> /// <param name="content">条件信息。</param> /// <returns></returns> public DeleteBlock Where(params object[] content) { _Conditions = new WhereBlock(); Conditions.Content.AddRange(content); return(this); }