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
3cc7db64
Commit
3cc7db64
authored
Sep 08, 2016
by
Marc Gravell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add some <remarks> to the new options
parent
92172188
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
SqlMapper.Settings.cs
Dapper/SqlMapper.Settings.cs
+2
-0
No files found.
Dapper/SqlMapper.Settings.cs
View file @
3cc7db64
...
...
@@ -21,6 +21,7 @@ private static void SetAllowedCommandBehaviors(CommandBehavior behavior, bool en
/// <summary>
/// Gets or sets whether dapper should use the CommandBehavior.SingleResult optimization
/// </summary>
/// <remarks>Note that a consequence of enabling this option is that errors that happen <b>after</b> the first select may not be reported</remarks>
public
static
bool
UseSingleResultOptimization
{
get
{
return
(
AllowedCommandBehaviors
&
CommandBehavior
.
SingleResult
)
!=
0
;
}
...
...
@@ -29,6 +30,7 @@ public static bool UseSingleResultOptimization
/// <summary>
/// Gets or sets whether dapper should use the CommandBehavior.SingleRow optimization
/// </summary>
/// <remarks>Note that on some DB providers this optimization can have adverse performance impact</remarks>
public
static
bool
UseSingleRowOptimization
{
get
{
return
(
AllowedCommandBehaviors
&
CommandBehavior
.
SingleRow
)
!=
0
;
}
...
...
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