DbExtensions.ReflectionParameterProvider<T> Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Adds given parameters to a command using reflection.
public static void ReflectionParameterProvider<T> (this System.Data.IDbCommand command, T parameters, System.Collections.Generic.IReadOnlyDictionary<string,string> nameMap = default);
static member ReflectionParameterProvider : System.Data.IDbCommand * 'T * System.Collections.Generic.IReadOnlyDictionary<string, string> -> unit
<Extension()>
Public Sub ReflectionParameterProvider(Of T) (command As IDbCommand, parameters As T, Optional nameMap As IReadOnlyDictionary(Of String, String) = Nothing)
Type Parameters
- T
The type of the parameters.
Parameters
- command
- IDbCommand
The command.
- parameters
- T
The parameters.
- nameMap
- IReadOnlyDictionary<String,String>
Maps a given property name to another one defined in the map.
Remarks
Does not support collection parameters currently. Does not cache reflection results.