mirror of
https://github.com/DapperLib/Dapper.git
synced 2026-10-23 17:18:46 +08:00
25 lines
748 B
C#
25 lines
748 B
C#
using System.Data;
|
|
|
|
#if COREFX
|
|
using IDbCommand = System.Data.Common.DbCommand;
|
|
#endif
|
|
|
|
namespace Dapper
|
|
{
|
|
partial class SqlMapper
|
|
{
|
|
/// <summary>
|
|
/// Implement this interface to pass an arbitrary db specific set of parameters to Dapper
|
|
/// </summary>
|
|
public interface IDynamicParameters
|
|
{
|
|
/// <summary>
|
|
/// Add all the parameters needed to the command just before it executes
|
|
/// </summary>
|
|
/// <param name="command">The raw command prior to execution</param>
|
|
/// <param name="identity">Information about the query</param>
|
|
void AddParameters(IDbCommand command, Identity identity);
|
|
}
|
|
}
|
|
}
|