mirror of
https://github.com/nsnail/FreeSql.git
synced 2025-06-19 04:18:16 +08:00
- 增加 IAdo.GetDbParamtersByObject 方法获取 DbParameter[];
This commit is contained in:
@ -55,6 +55,13 @@ namespace FreeSql
|
||||
DbTransaction TransactionCurrentThread { get; }
|
||||
#endregion
|
||||
|
||||
/// <summary>
|
||||
/// 将 new { id = 1 } 或者 Dictionary<string, object> 转换为 DbParameter[]
|
||||
/// </summary>
|
||||
/// <param name="obj">new { id = 1 } 或者 Dictionary<string, object></param>
|
||||
/// <returns></returns>
|
||||
DbParameter[] GetDbParamtersByObject(object obj);
|
||||
|
||||
/// <summary>
|
||||
/// 查询,若使用读写分离,查询【从库】条件cmdText.StartsWith("SELECT "),否则查询【主库】
|
||||
/// </summary>
|
||||
|
Reference in New Issue
Block a user