NuGet downloads the dapper assembly and browses the exposed methods, as shown in
The main explanation: the call procedure of the Execute method,
public static int Execute (this idbconnection CNN, string sql, object param = null, idbtransaction transaction = null, int?) CommandTimeout = null, commandtype? CommandType = null)
This method code:
The Executeimpl method is called internally
, the number is fixed to an array
The ExecuteCommand method is explained below
There are altogether two classes of identity (identity) in the above code, CACHEINFO (cache information)
First, the identity. This class, which is used to commandtext,commandtype,cnn,param a package, is used to uniquely identify these objects. Provides a unique identifier for the caching mechanism.
identity = new Identity (Command.commandtext, Command.commandtype, CNN, NULL, Param. GetType (), NULL);
Then we'll look at this class of Cacheinfo, constructed with the Identity,param,bool parameter.
info = getcacheinfo (identity, param, command. Addtocache);
Here's a look at its constructor:
We then look at the circled method in step 3, which is used to generate a delegate with no return value, and the arguments are ICommand and object
Dapper Source explanation