Click or drag to resize
DynamicParameters Class
A bag of parameters that can be passed to the Dapper Query and Execute methods
Inheritance Hierarchy
SystemObject
  DapperDynamicParameters

Namespace: Dapper
Assembly: VirtualRadar.Database (in VirtualRadar.Database.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
public class DynamicParameters : SqlMapperIDynamicParameters, 
	SqlMapperIParameterLookup, SqlMapperIParameterCallbacks

The DynamicParameters type exposes the following members.

Constructors
  NameDescription
Public methodDynamicParameters
construct a dynamic parameter bag
Public methodDynamicParameters(Object)
construct a dynamic parameter bag
Top
Properties
  NameDescription
Public propertyParameterNames
All the names of the param in the bag, use Get to yank them out
Public propertyRemoveUnused
If true, the command-text is inspected and only values that are clearly used are included on the connection
Top
Methods
  NameDescription
Public methodAdd(String, Object, NullableDbType, NullableParameterDirection, NullableInt32)
Add a parameter to this dynamic parameter list
Public methodAdd(String, Object, NullableDbType, NullableParameterDirection, NullableInt32, NullableByte, NullableByte)
Add a parameter to this dynamic parameter list
Public methodAddDynamicParams
Append a whole object full of params to the dynamic EG: AddDynamicParams(new {A = 1, B = 2}) // will add property A and B to the dynamic
Protected methodAddParameters
Add all the parameters needed to the command just before it executes
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetT
Get the value of a parameter
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodOutputT
Allows you to automatically populate a target property/field from output parameters. It actually creates an InputOutput parameter, so you can still pass data in.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Extension Methods
  NameDescription
Public Extension MethodReplaceLiterals
Replace all literal tokens with their text form
(Defined by SqlMapper.)
Top
See Also