Dapper
Dapper, a light weight object mapper for ADO.NET
Purge the query cache
Return a count of all the cached queries by dapper
Return a list of all the queries cached by dapper
Deep diagnostics only: find any hash collisions in the cache
Configire the specified type to be mapped to a given db-type
Execute parameterized SQL
Number of rows affected
Return a list of dynamic objects, reader is closed after the call
Executes a query, returning the data typed as per T
the dynamic param may seem a bit odd, but this works around a major usability issue in vs, if it is Object vs completion gets annoying. Eg type new [space] get new object
A sequence of data of the supplied type; if a basic type (int, string, etc) is queried then the data from the first column in assumed, otherwise an instance is
created per row, and a direct column-name===member-name mapping is assumed (case insensitive).
Execute a command that returns multiple result sets, and access each in turn
Return a typed list of objects, reader is closed after the call
Maps a query to objects
The first type in the recordset
The second type in the recordset
The return type
The Field we should split and read the second object from (default: id)
Number of seconds before command execution timeout
Is it a stored proc or a batch?
Maps a query to objects
The Field we should split and read the second object from (default: id)
Number of seconds before command execution timeout
Perform a multi mapping query with 4 input parameters
Perform a multi mapping query with 5 input parameters
Perform a multi mapping query with 6 input parameters
Perform a multi mapping query with 7 input parameters
Internal use only
Internal use only
Internal use only
Internal use only
Internal use only
Gets type-map for the given type
Type map implementation, DefaultTypeMap instance if no override present
Set custom mapping for type deserializers
Entity type to override
Mapping rules impementation, null to remove custom map
Internal use only
Throws a data exception, only used internally
Execute a query asynchronously using .NET 4.5 Task.
Maps a query to objects
The first type in the recordset
The second type in the recordset
The return type
The Field we should split and read the second object from (default: id)
Number of seconds before command execution timeout
Is it a stored proc or a batch?
Maps a query to objects
The Field we should split and read the second object from (default: id)
Number of seconds before command execution timeout
Perform a multi mapping query with 4 input parameters
Perform a multi mapping query with 5 input parameters
Perform a multi mapping query with 6 input parameters
Perform a multi mapping query with 7 input parameters
Called if the query cache is purged via PurgeQueryCache
How should connection strings be compared for equivalence? Defaults to StringComparer.Ordinal.
Providing a custom implementation can be useful for allowing multi-tenancy databases with identical
schema to share startegies. Note that usual equivalence rules apply: any equivalent connection strings
MUST yield the same hash-code.
Implement this interface to pass an arbitrary db specific set of parameters to Dapper
Add all the parameters needed to the command just before it executes
The raw command prior to execution
Information about the query
Implement this interface to pass an arbitrary db specific parameter to Dapper
Add the parameter needed to the command before it executes
The raw command prior to execution
Parameter name
Implement this interface to change default mapping of reader columns to type memebers
Finds best constructor
DataReader column names
DataReader column types
Matching constructor or default one
Gets mapping for constructor parameter
Constructor to resolve
DataReader column name
Mapping implementation
Gets member mapping for column
DataReader column name
Mapping implementation
Implements this interface to provide custom member mapping
Source DataReader column name
Target member type
Target property
Target field
Target constructor parameter
This is a micro-cache; suitable when the number of terms is controllable (a few hundred, for example),
and strictly append-only; you cannot change existing values. All key matches are on **REFERENCE**
equality. The type is fully thread-safe.
Identity of a cached query in Dapper, used for extensability
Create an identity for use with DynamicParameters, internal use only
The sql
The command type
Compare 2 Identity objects
The grid reader provides interfaces for reading multiple result sets from a Dapper query
Read the next grid of results, returned as a dynamic object
Read the next grid of results
Read multiple objects from a single recordset on the grid
Read multiple objects from a single recordset on the grid
Read multiple objects from a single record set on the grid
Read multiple objects from a single record set on the grid
Read multiple objects from a single record set on the grid
Read multiple objects from a single record set on the grid
Dispose the grid, closing and disposing both the underlying reader and command.
A bag of parameters that can be passed to the Dapper Query and Execute methods
construct a dynamic parameter bag
construct a dynamic parameter bag
can be an anonymous type or a DynamicParameters bag
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
Add a parameter to this dynamic parameter list
Add all the parameters needed to the command just before it executes
The raw command prior to execution
Information about the query
Get the value of a parameter
The value, note DBNull.Value is not returned, instead the value is returned as null
All the names of the param in the bag, use Get to yank them out
This class represents a SQL string, it can be used if you need to denote your parameter is a Char vs VarChar vs nVarChar vs nChar
Create a new DbString
Add the parameter to the command... internal use only
Ansi vs Unicode
Fixed length
Length of the string -1 for max
The value of the string
Handles variances in features per DBMS
Dictionary of supported features index by connection type name
Gets the featureset based on the passed connection
True if the db supports array columns e.g. Postgresql
Represents simple memeber map for one of target parameter or property or field to source DataReader column
Creates instance for simple property mapping
DataReader column name
Target property
Creates instance for simple field mapping
DataReader column name
Target property
Creates instance for simple constructor parameter mapping
DataReader column name
Target constructor parameter
DataReader column name
Target member type
Target property
Target field
Target constructor parameter
Represents default type mapping strategy used by Dapper
Creates default type map
Entity type
Finds best constructor
DataReader column names
DataReader column types
Matching constructor or default one
Gets mapping for constructor parameter
Constructor to resolve
DataReader column name
Mapping implementation
Gets member mapping for column
DataReader column name
Mapping implementation
Implements custom property mapping by user provided criteria (usually presence of some custom attribute with column to member mapping)
Creates custom property mapping
Target entity type
Property selector based on target type and DataReader column name
Always returns default constructor
DataReader column names
DataReader column types
Default constructor
Not impelmeneted as far as default constructor used for all cases
Returns property based on selector strategy
DataReader column name
Poperty member map