mirror of
				https://github.com/nsnail/FreeSql.git
				synced 2025-11-04 17:20:49 +08:00 
			
		
		
		
	- 完善 ISelect<T>.WithSql 方法,支持传入参数化 #413;
This commit is contained in:
		@@ -373,10 +373,13 @@ namespace FreeSql
 | 
			
		||||
 | 
			
		||||
        /// <summary>
 | 
			
		||||
        /// 实现 select .. from ( select ... from t ) a 这样的功能<para></para>
 | 
			
		||||
        /// 使用 AsTable 方法也可以达到效果
 | 
			
		||||
        /// 使用 AsTable 方法也可以达到效果<para></para>
 | 
			
		||||
        /// 示例:WithSql("select * from id=?id", new { id = 1 })<para></para>
 | 
			
		||||
        /// 提示:parms 参数还可以传 Dictionary<string, object>
 | 
			
		||||
        /// </summary>
 | 
			
		||||
        /// <param name="sql">SQL语句</param>
 | 
			
		||||
        /// <param name="parms">参数</param>
 | 
			
		||||
        /// <returns></returns>
 | 
			
		||||
        ISelect<T1> WithSql(string sql);
 | 
			
		||||
        ISelect<T1> WithSql(string sql, object parms = null);
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
		Reference in New Issue
	
	Block a user