- 完善 IDelete WhereIf(bool, sql) 方法;

This commit is contained in:
2881099
2020-12-07 20:02:57 +08:00
parent 671fb09146
commit ff1354d46c
3 changed files with 22 additions and 185 deletions

View File

@ -53,6 +53,15 @@ namespace FreeSql
/// <returns></returns>
IDelete<T1> Where(string sql, object parms = null);
/// <summary>
/// 原生sql语法条件Where("id = @id", new { id = 1 })<para></para>
/// 提示parms 参数还可以传 Dictionary&lt;string, object&gt;
/// </summary>
/// <param name="condition">true 时生效</param>
/// <param name="sql">sql语法条件</param>
/// <param name="parms">参数</param>
/// <returns></returns>
IDelete<T1> WhereIf(bool condition, string sql, object parms = null);
/// <summary>
/// 传入实体,将主键作为条件
/// </summary>
/// <param name="item">实体</param>