Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
D
Dapper
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
tsai
Dapper
Commits
c840cc2e
Commit
c840cc2e
authored
Nov 16, 2014
by
Marc Gravell
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #204 from ofirgeller/patch-1
Spell Checking
parents
8df328f8
7aec5c0d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
21 deletions
+21
-21
SqlMapper.cs
Dapper NET40/SqlMapper.cs
+21
-21
No files found.
Dapper NET40/SqlMapper.cs
View file @
c840cc2e
...
@@ -33,7 +33,7 @@ internal sealed class AssemblyNeutralAttribute : Attribute { }
...
@@ -33,7 +33,7 @@ internal sealed class AssemblyNeutralAttribute : Attribute { }
public
enum
CommandFlags
public
enum
CommandFlags
{
{
/// <summary>
/// <summary>
/// No additonal flags
/// No addit
i
onal flags
/// </summary>
/// </summary>
None
=
0
,
None
=
0
,
/// <summary>
/// <summary>
...
@@ -263,7 +263,7 @@ public interface IParameterLookup : IDynamicParameters
...
@@ -263,7 +263,7 @@ public interface IParameterLookup : IDynamicParameters
}
}
/// <summary>
/// <summary>
/// Extends IDynamicParameters with faci
til
ies for executing callbacks after commands have completed
/// Extends IDynamicParameters with faci
lit
ies for executing callbacks after commands have completed
/// </summary>
/// </summary>
public
partial
interface
IParameterCallbacks
:
IDynamicParameters
public
partial
interface
IParameterCallbacks
:
IDynamicParameters
{
{
...
@@ -377,7 +377,7 @@ object ITypeHandler.Parse(Type destinationType, object value)
...
@@ -377,7 +377,7 @@ object ITypeHandler.Parse(Type destinationType, object value)
}
}
/// <summary>
/// <summary>
/// Implement this interface to change default mapping of reader columns to type mem
e
bers
/// Implement this interface to change default mapping of reader columns to type members
/// </summary>
/// </summary>
public
interface
ITypeMap
public
interface
ITypeMap
{
{
...
@@ -394,7 +394,7 @@ public interface ITypeMap
...
@@ -394,7 +394,7 @@ public interface ITypeMap
///
///
/// Parameters will be default values, nulls for reference types and zero'd for value types.
/// Parameters will be default values, nulls for reference types and zero'd for value types.
///
///
/// Use this class to force object creation away from parameterless constructors you dn't control.
/// Use this class to force object creation away from parameterless constructors you d
o
n't control.
/// </summary>
/// </summary>
ConstructorInfo
FindExplicitConstructor
();
ConstructorInfo
FindExplicitConstructor
();
...
@@ -735,7 +735,7 @@ public static void ResetTypeHandlers()
...
@@ -735,7 +735,7 @@ public static void ResetTypeHandlers()
AddTypeHandlerImpl
(
typeof
(
DataTable
),
new
DataTableHandler
(),
true
);
AddTypeHandlerImpl
(
typeof
(
DataTable
),
new
DataTableHandler
(),
true
);
}
}
/// <summary>
/// <summary>
/// Config
i
re the specified type to be mapped to a given db-type
/// Config
u
re the specified type to be mapped to a given db-type
/// </summary>
/// </summary>
public
static
void
AddTypeMap
(
Type
type
,
DbType
dbType
)
public
static
void
AddTypeMap
(
Type
type
,
DbType
dbType
)
{
{
...
@@ -751,7 +751,7 @@ public static void AddTypeMap(Type type, DbType dbType)
...
@@ -751,7 +751,7 @@ public static void AddTypeMap(Type type, DbType dbType)
}
}
/// <summary>
/// <summary>
/// Config
i
re the specified type to be processed by a custom handler
/// Config
u
re the specified type to be processed by a custom handler
/// </summary>
/// </summary>
public
static
void
AddTypeHandler
(
Type
type
,
ITypeHandler
handler
)
public
static
void
AddTypeHandler
(
Type
type
,
ITypeHandler
handler
)
{
{
...
@@ -759,7 +759,7 @@ public static void AddTypeHandler(Type type, ITypeHandler handler)
...
@@ -759,7 +759,7 @@ public static void AddTypeHandler(Type type, ITypeHandler handler)
}
}
/// <summary>
/// <summary>
/// Config
i
re the specified type to be processed by a custom handler
/// Config
u
re the specified type to be processed by a custom handler
/// </summary>
/// </summary>
public
static
void
AddTypeHandlerImpl
(
Type
type
,
ITypeHandler
handler
,
bool
clone
)
public
static
void
AddTypeHandlerImpl
(
Type
type
,
ITypeHandler
handler
,
bool
clone
)
{
{
...
@@ -808,7 +808,7 @@ public static void AddTypeHandlerImpl(Type type, ITypeHandler handler, bool clon
...
@@ -808,7 +808,7 @@ public static void AddTypeHandlerImpl(Type type, ITypeHandler handler, bool clon
}
}
/// <summary>
/// <summary>
/// Config
i
re the specified type to be processed by a custom handler
/// Config
u
re the specified type to be processed by a custom handler
/// </summary>
/// </summary>
public
static
void
AddTypeHandler
<
T
>(
TypeHandler
<
T
>
handler
)
public
static
void
AddTypeHandler
<
T
>(
TypeHandler
<
T
>
handler
)
{
{
...
@@ -913,7 +913,7 @@ internal static DbType LookupDbType(Type type, string name, bool demand, out ITy
...
@@ -913,7 +913,7 @@ internal static DbType LookupDbType(Type type, string name, bool demand, out ITy
}
}
/// <summary>
/// <summary>
/// Identity of a cached query in Dapper, used for extens
a
bility
/// Identity of a cached query in Dapper, used for extens
i
bility
/// </summary>
/// </summary>
public
partial
class
Identity
:
IEquatable
<
Identity
>
public
partial
class
Identity
:
IEquatable
<
Identity
>
{
{
...
@@ -1600,8 +1600,8 @@ private static IEnumerable<T> QueryImpl<T>(this IDbConnection cnn, CommandDefini
...
@@ -1600,8 +1600,8 @@ private static IEnumerable<T> QueryImpl<T>(this IDbConnection cnn, CommandDefini
/// <summary>
/// <summary>
/// Maps a query to objects
/// Maps a query to objects
/// </summary>
/// </summary>
/// <typeparam name="TFirst">The first type in the recordset</typeparam>
/// <typeparam name="TFirst">The first type in the record
set</typeparam>
/// <typeparam name="TSecond">The second type in the recordset</typeparam>
/// <typeparam name="TSecond">The second type in the record
set</typeparam>
/// <typeparam name="TReturn">The return type</typeparam>
/// <typeparam name="TReturn">The return type</typeparam>
/// <param name="cnn"></param>
/// <param name="cnn"></param>
/// <param name="sql"></param>
/// <param name="sql"></param>
...
@@ -1768,7 +1768,7 @@ private static IEnumerable<T> QueryImpl<T>(this IDbConnection cnn, CommandDefini
...
@@ -1768,7 +1768,7 @@ private static IEnumerable<T> QueryImpl<T>(this IDbConnection cnn, CommandDefini
/// <typeparam name="TReturn">The return type</typeparam>
/// <typeparam name="TReturn">The return type</typeparam>
/// <param name="cnn"></param>
/// <param name="cnn"></param>
/// <param name="sql"></param>
/// <param name="sql"></param>
/// <param name="types">array of types in the recordset</param>
/// <param name="types">array of types in the record
set</param>
/// <param name="map"></param>
/// <param name="map"></param>
/// <param name="param"></param>
/// <param name="param"></param>
/// <param name="transaction"></param>
/// <param name="transaction"></param>
...
@@ -3246,7 +3246,7 @@ internal static IList<LiteralToken> GetLiteralTokens(string sql)
...
@@ -3246,7 +3246,7 @@ internal static IList<LiteralToken> GetLiteralTokens(string sql)
case
TypeCode
.
Single
:
case
TypeCode
.
Single
:
case
TypeCode
.
Double
:
case
TypeCode
.
Double
:
case
TypeCode
.
Decimal
:
case
TypeCode
.
Decimal
:
// nee
e
d to stloc, ldloca, call
// need to stloc, ldloca, call
// re-use existing locals (both the last known, and via a dictionary)
// re-use existing locals (both the last known, and via a dictionary)
var
convert
=
GetToString
(
typeCode
);
var
convert
=
GetToString
(
typeCode
);
if
(
local
==
null
||
local
.
LocalType
!=
propType
)
if
(
local
==
null
||
local
.
LocalType
!=
propType
)
...
@@ -4080,7 +4080,7 @@ private static void EmitInt32(ILGenerator il, int value)
...
@@ -4080,7 +4080,7 @@ private static void EmitInt32(ILGenerator il, int value)
/// <summary>
/// <summary>
/// How should connection strings be compared for equivalence? Defaults to StringComparer.Ordinal.
/// 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
/// Providing a custom implementation can be useful for allowing multi-tenancy databases with identical
/// schema to share st
ar
tegies. Note that usual equivalence rules apply: any equivalent connection strings
/// schema to share st
ra
tegies. Note that usual equivalence rules apply: any equivalent connection strings
/// <b>MUST</b> yield the same hash-code.
/// <b>MUST</b> yield the same hash-code.
/// </summary>
/// </summary>
public
static
IEqualityComparer
<
string
>
ConnectionStringComparer
public
static
IEqualityComparer
<
string
>
ConnectionStringComparer
...
@@ -4200,7 +4200,7 @@ private IEnumerable<T> ReadImpl<T>(Type type, bool buffered)
...
@@ -4200,7 +4200,7 @@ private IEnumerable<T> ReadImpl<T>(Type type, bool buffered)
#if CSHARP30
#if CSHARP30
/// <summary>
/// <summary>
/// Read multiple objects from a single recordset on the grid
/// Read multiple objects from a single record
set on the grid
/// </summary>
/// </summary>
public
IEnumerable
<
TReturn
>
Read
<
TFirst
,
TSecond
,
TReturn
>(
Func
<
TFirst
,
TSecond
,
TReturn
>
func
,
string
splitOn
)
public
IEnumerable
<
TReturn
>
Read
<
TFirst
,
TSecond
,
TReturn
>(
Func
<
TFirst
,
TSecond
,
TReturn
>
func
,
string
splitOn
)
{
{
...
@@ -4208,7 +4208,7 @@ private IEnumerable<T> ReadImpl<T>(Type type, bool buffered)
...
@@ -4208,7 +4208,7 @@ private IEnumerable<T> ReadImpl<T>(Type type, bool buffered)
}
}
#endif
#endif
/// <summary>
/// <summary>
/// Read multiple objects from a single recordset on the grid
/// Read multiple objects from a single record
set on the grid
/// </summary>
/// </summary>
#if CSHARP30
#if CSHARP30
public
IEnumerable
<
TReturn
>
Read
<
TFirst
,
TSecond
,
TReturn
>(
Func
<
TFirst
,
TSecond
,
TReturn
>
func
,
string
splitOn
,
bool
buffered
)
public
IEnumerable
<
TReturn
>
Read
<
TFirst
,
TSecond
,
TReturn
>(
Func
<
TFirst
,
TSecond
,
TReturn
>
func
,
string
splitOn
,
bool
buffered
)
...
@@ -4222,7 +4222,7 @@ private IEnumerable<T> ReadImpl<T>(Type type, bool buffered)
...
@@ -4222,7 +4222,7 @@ private IEnumerable<T> ReadImpl<T>(Type type, bool buffered)
#if CSHARP30
#if CSHARP30
/// <summary>
/// <summary>
/// Read multiple objects from a single recordset on the grid
/// Read multiple objects from a single record
set on the grid
/// </summary>
/// </summary>
public
IEnumerable
<
TReturn
>
Read
<
TFirst
,
TSecond
,
TThird
,
TReturn
>(
Func
<
TFirst
,
TSecond
,
TThird
,
TReturn
>
func
,
string
splitOn
)
public
IEnumerable
<
TReturn
>
Read
<
TFirst
,
TSecond
,
TThird
,
TReturn
>(
Func
<
TFirst
,
TSecond
,
TThird
,
TReturn
>
func
,
string
splitOn
)
{
{
...
@@ -4230,7 +4230,7 @@ private IEnumerable<T> ReadImpl<T>(Type type, bool buffered)
...
@@ -4230,7 +4230,7 @@ private IEnumerable<T> ReadImpl<T>(Type type, bool buffered)
}
}
#endif
#endif
/// <summary>
/// <summary>
/// Read multiple objects from a single recordset on the grid
/// Read multiple objects from a single record
set on the grid
/// </summary>
/// </summary>
#if CSHARP30
#if CSHARP30
public
IEnumerable
<
TReturn
>
Read
<
TFirst
,
TSecond
,
TThird
,
TReturn
>(
Func
<
TFirst
,
TSecond
,
TThird
,
TReturn
>
func
,
string
splitOn
,
bool
buffered
)
public
IEnumerable
<
TReturn
>
Read
<
TFirst
,
TSecond
,
TThird
,
TReturn
>(
Func
<
TFirst
,
TSecond
,
TThird
,
TReturn
>
func
,
string
splitOn
,
bool
buffered
)
...
@@ -5056,7 +5056,7 @@ private static readonly FeatureSupport
...
@@ -5056,7 +5056,7 @@ private static readonly FeatureSupport
postgres
=
new
FeatureSupport
(
true
);
postgres
=
new
FeatureSupport
(
true
);
/// <summary>
/// <summary>
/// Gets the featureset based on the passed connection
/// Gets the feature
set based on the passed connection
/// </summary>
/// </summary>
public
static
FeatureSupport
Get
(
IDbConnection
connection
)
public
static
FeatureSupport
Get
(
IDbConnection
connection
)
{
{
...
@@ -5075,7 +5075,7 @@ private FeatureSupport(bool arrays)
...
@@ -5075,7 +5075,7 @@ private FeatureSupport(bool arrays)
}
}
/// <summary>
/// <summary>
/// Represents simple mem
e
ber map for one of target parameter or property or field to source DataReader column
/// Represents simple member map for one of target parameter or property or field to source DataReader column
/// </summary>
/// </summary>
sealed
partial
class
SimpleMemberMap
:
SqlMapper
.
IMemberMap
sealed
partial
class
SimpleMemberMap
:
SqlMapper
.
IMemberMap
{
{
...
@@ -5392,7 +5392,7 @@ public ConstructorInfo FindExplicitConstructor()
...
@@ -5392,7 +5392,7 @@ public ConstructorInfo FindExplicitConstructor()
}
}
/// <summary>
/// <summary>
/// Not imp
elmene
ted as far as default constructor used for all cases
/// Not imp
lemen
ted as far as default constructor used for all cases
/// </summary>
/// </summary>
/// <param name="constructor"></param>
/// <param name="constructor"></param>
/// <param name="columnName"></param>
/// <param name="columnName"></param>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment