mirror of
				https://github.com/nsnail/FreeSql.git
				synced 2025-11-04 17:20:49 +08:00 
			
		
		
		
	- 增加 IUpdate/IDelete WhereIf 方法 #466;
This commit is contained in:
		@@ -30,6 +30,14 @@ namespace FreeSql
 | 
			
		||||
        /// <returns></returns>
 | 
			
		||||
        IDelete<T1> Where(Expression<Func<T1, bool>> exp);
 | 
			
		||||
        /// <summary>
 | 
			
		||||
        /// lambda表达式条件,仅支持实体基础成员(不包含导航对象)<para></para>
 | 
			
		||||
        /// 若想使用导航对象,请使用 ISelect.ToUpdate() 方法
 | 
			
		||||
        /// </summary>
 | 
			
		||||
        /// <param name="condition">true 时生效</param>
 | 
			
		||||
        /// <param name="exp">lambda表达式条件</param>
 | 
			
		||||
        /// <returns></returns>
 | 
			
		||||
        IDelete<T1> WhereIf(bool condition, Expression<Func<T1, bool>> exp);
 | 
			
		||||
        /// <summary>
 | 
			
		||||
        /// 原生sql语法条件,Where("id = ?id", new { id = 1 })<para></para>
 | 
			
		||||
        /// 提示:parms 参数还可以传 Dictionary<string, object>
 | 
			
		||||
        /// </summary>
 | 
			
		||||
 
 | 
			
		||||
@@ -170,6 +170,14 @@ namespace FreeSql
 | 
			
		||||
        /// <returns></returns>
 | 
			
		||||
        IUpdate<T1> Where(Expression<Func<T1, bool>> exp);
 | 
			
		||||
        /// <summary>
 | 
			
		||||
        /// lambda表达式条件,仅支持实体基础成员(不包含导航对象)<para></para>
 | 
			
		||||
        /// 若想使用导航对象,请使用 ISelect.ToUpdate() 方法
 | 
			
		||||
        /// </summary>
 | 
			
		||||
        /// <param name="condition">true 时生效</param>
 | 
			
		||||
        /// <param name="exp">lambda表达式条件</param>
 | 
			
		||||
        /// <returns></returns>
 | 
			
		||||
        IUpdate<T1> WhereIf(bool condition, Expression<Func<T1, bool>> exp);
 | 
			
		||||
        /// <summary>
 | 
			
		||||
        /// 原生sql语法条件,Where("id = ?id", new { id = 1 })<para></para>
 | 
			
		||||
        /// 提示:parms 参数还可以传 Dictionary<string, object>
 | 
			
		||||
        /// </summary>
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user