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
114bc107
Commit
114bc107
authored
Nov 24, 2015
by
Nick Craver
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Core: peripheral cleanup
parent
ad0a2622
Changes
11
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
13 additions
and
34 deletions
+13
-34
.gitignore
.gitignore
+2
-1
Dapper.sln.DotSettings
Dapper.sln.DotSettings
+2
-1
CustomPropertyTypeMap.cs
Dapper/CustomPropertyTypeMap.cs
+0
-2
DbString.cs
Dapper/DbString.cs
+0
-1
DynamicParameters.CachedOutputSetters.cs
Dapper/DynamicParameters.CachedOutputSetters.cs
+1
-3
DynamicParameters.ParamInfo.cs
Dapper/DynamicParameters.ParamInfo.cs
+0
-1
DynamicParameters.cs
Dapper/DynamicParameters.cs
+4
-16
ExplicitConstructorAttribute.cs
Dapper/ExplicitConstructorAttribute.cs
+0
-1
FeatureSupport.cs
Dapper/FeatureSupport.cs
+4
-5
SimpleMemberMap.cs
Dapper/SimpleMemberMap.cs
+0
-1
SqlDataRecordListTVPParameter.cs
Dapper/SqlDataRecordListTVPParameter.cs
+0
-2
No files found.
.gitignore
View file @
114bc107
...
...
@@ -12,4 +12,5 @@ NuGet.exe
*.ide/
*.lock.json
*.coverage
Test.DB.*
\ No newline at end of file
Test.DB.*
TestResults/
\ No newline at end of file
Dapper.sln.DotSettings
View file @
114bc107
<wpf:ResourceDictionary xml:space="preserve" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:s="clr-namespace:System;assembly=mscorlib" xmlns:ss="urn:shemas-jetbrains-com:settings-storage-xaml" xmlns:wpf="http://schemas.microsoft.com/winfx/2006/xaml/presentation">
<s:String x:Key="/Default/CodeStyle/Naming/CSharpNaming/Abbreviations/=CE/@EntryIndexedValue">CE</s:String>
<s:String x:Key="/Default/CodeStyle/Naming/CSharpNaming/Abbreviations/=SQ/@EntryIndexedValue">SQ</s:String>
<s:String x:Key="/Default/CodeStyle/Naming/CSharpNaming/Abbreviations/=SQL/@EntryIndexedValue">SQL</s:String></wpf:ResourceDictionary>
\ No newline at end of file
<s:String x:Key="/Default/CodeStyle/Naming/CSharpNaming/Abbreviations/=SQL/@EntryIndexedValue">SQL</s:String>
<s:String x:Key="/Default/CodeStyle/Naming/CSharpNaming/Abbreviations/=TVP/@EntryIndexedValue">TVP</s:String></wpf:ResourceDictionary>
\ No newline at end of file
Dapper/CustomPropertyTypeMap.cs
View file @
114bc107
...
...
@@ -71,6 +71,4 @@ public SqlMapper.IMemberMap GetMember(string columnName)
return
prop
!=
null
?
new
SimpleMemberMap
(
columnName
,
prop
)
:
null
;
}
}
}
Dapper/DbString.cs
View file @
114bc107
...
...
@@ -74,5 +74,4 @@ public void AddParameter(IDbCommand command, string name)
command
.
Parameters
.
Add
(
param
);
}
}
}
Dapper/DynamicParameters.CachedOutputSetters.cs
View file @
114bc107
using
System
;
using
System.Collections
;
using
System.Collections.Generic
;
using
System.Collections
;
namespace
Dapper
{
...
...
Dapper/DynamicParameters.ParamInfo.cs
View file @
114bc107
...
...
@@ -23,6 +23,5 @@ sealed class ParamInfo
public
byte
?
Precision
{
get
;
set
;
}
public
byte
?
Scale
{
get
;
set
;
}
}
}
}
Dapper/DynamicParameters.cs
View file @
114bc107
...
...
@@ -108,7 +108,7 @@ public void AddDynamicParams(object param)
/// </summary>
public
void
Add
(
string
name
,
object
value
,
DbType
?
dbType
,
ParameterDirection
?
direction
,
int
?
size
)
{
parameters
[
Clean
(
name
)]
=
new
ParamInfo
()
parameters
[
Clean
(
name
)]
=
new
ParamInfo
{
Name
=
name
,
Value
=
value
,
...
...
@@ -125,7 +125,7 @@ public void Add(string name, object value, DbType? dbType, ParameterDirection? d
string
name
,
object
value
=
null
,
DbType
?
dbType
=
null
,
ParameterDirection
?
direction
=
null
,
int
?
size
=
null
,
byte
?
precision
=
null
,
byte
?
scale
=
null
)
{
parameters
[
Clean
(
name
)]
=
new
ParamInfo
()
parameters
[
Clean
(
name
)]
=
new
ParamInfo
{
Name
=
name
,
Value
=
value
,
...
...
@@ -300,13 +300,7 @@ protected void AddParameters(IDbCommand command, SqlMapper.Identity identity)
/// <summary>
/// All the names of the param in the bag, use Get to yank them out
/// </summary>
public
IEnumerable
<
string
>
ParameterNames
{
get
{
return
parameters
.
Select
(
p
=>
p
.
Key
);
}
}
public
IEnumerable
<
string
>
ParameterNames
=>
parameters
.
Select
(
p
=>
p
.
Key
);
/// <summary>
...
...
@@ -490,11 +484,7 @@ public DynamicParameters Output<T>(T target, Expression<Func<T, object>> express
}
private
List
<
Action
>
outputCallbacks
;
private
readonly
Dictionary
<
string
,
Action
<
object
,
DynamicParameters
>>
cachedOutputSetters
=
new
Dictionary
<
string
,
Action
<
object
,
DynamicParameters
>>();
void
SqlMapper
.
IParameterCallbacks
.
OnCompleted
()
{
foreach
(
var
param
in
(
from
p
in
parameters
select
p
.
Value
))
...
...
@@ -503,6 +493,4 @@ void SqlMapper.IParameterCallbacks.OnCompleted()
}
}
}
}
Dapper/ExplicitConstructorAttribute.cs
View file @
114bc107
...
...
@@ -8,6 +8,5 @@ namespace Dapper
[
AttributeUsage
(
AttributeTargets
.
Constructor
,
AllowMultiple
=
false
)]
public
sealed
class
ExplicitConstructorAttribute
:
Attribute
{
}
}
Dapper/FeatureSupport.cs
View file @
114bc107
...
...
@@ -12,8 +12,8 @@ namespace Dapper
class
FeatureSupport
{
private
static
readonly
FeatureSupport
@d
efault
=
new
FeatureSupport
(
false
),
p
ostgres
=
new
FeatureSupport
(
true
);
D
efault
=
new
FeatureSupport
(
false
),
P
ostgres
=
new
FeatureSupport
(
true
);
/// <summary>
/// Gets the feature set based on the passed connection
...
...
@@ -21,8 +21,8 @@ private static readonly FeatureSupport
public
static
FeatureSupport
Get
(
IDbConnection
connection
)
{
string
name
=
connection
?.
GetType
().
Name
;
if
(
string
.
Equals
(
name
,
"npgsqlconnection"
,
StringComparison
.
OrdinalIgnoreCase
))
return
p
ostgres
;
return
@d
efault
;
if
(
string
.
Equals
(
name
,
"npgsqlconnection"
,
StringComparison
.
OrdinalIgnoreCase
))
return
P
ostgres
;
return
D
efault
;
}
private
FeatureSupport
(
bool
arrays
)
{
...
...
@@ -33,5 +33,4 @@ private FeatureSupport(bool arrays)
/// </summary>
public
bool
Arrays
{
get
;
}
}
}
Dapper/SimpleMemberMap.cs
View file @
114bc107
...
...
@@ -84,5 +84,4 @@ public SimpleMemberMap(string columnName, ParameterInfo parameter)
/// </summary>
public
ParameterInfo
Parameter
{
get
;
}
}
}
Dapper/SqlDataRecordListTVPParameter.cs
View file @
114bc107
...
...
@@ -5,7 +5,6 @@
#if !COREFX
namespace
Dapper
{
/// <summary>
/// Used to pass a IEnumerable<SqlDataRecord> as a SqlDataRecordListTVPParameter
/// </summary>
...
...
@@ -49,6 +48,5 @@ internal static void Set(IDbDataParameter parameter, IEnumerable<Microsoft.SqlSe
}
}
}
}
#
endif
\ No newline at end of file
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