Edit

Share via


DbExtensions.ReflectionParameterProvider<T> Method

Definition

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.

Applies to