- 完善 ISelect<T>.WithSql 方法,支持传入参数化 #413;

This commit is contained in:
28810
2020-08-13 10:25:01 +08:00
parent ae56952621
commit 5f645f194f
4 changed files with 23 additions and 158 deletions

View File

@ -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&lt;string, object&gt;
/// </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);
}
}