Commit 3cc7db64 authored by Marc Gravell's avatar Marc Gravell

Add some <remarks> to the new options

parent 92172188
...@@ -21,6 +21,7 @@ private static void SetAllowedCommandBehaviors(CommandBehavior behavior, bool en ...@@ -21,6 +21,7 @@ private static void SetAllowedCommandBehaviors(CommandBehavior behavior, bool en
/// <summary> /// <summary>
/// Gets or sets whether dapper should use the CommandBehavior.SingleResult optimization /// Gets or sets whether dapper should use the CommandBehavior.SingleResult optimization
/// </summary> /// </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 public static bool UseSingleResultOptimization
{ {
get { return (AllowedCommandBehaviors & CommandBehavior.SingleResult) != 0; } get { return (AllowedCommandBehaviors & CommandBehavior.SingleResult) != 0; }
...@@ -29,6 +30,7 @@ public static bool UseSingleResultOptimization ...@@ -29,6 +30,7 @@ public static bool UseSingleResultOptimization
/// <summary> /// <summary>
/// Gets or sets whether dapper should use the CommandBehavior.SingleRow optimization /// Gets or sets whether dapper should use the CommandBehavior.SingleRow optimization
/// </summary> /// </summary>
/// <remarks>Note that on some DB providers this optimization can have adverse performance impact</remarks>
public static bool UseSingleRowOptimization public static bool UseSingleRowOptimization
{ {
get { return (AllowedCommandBehaviors & CommandBehavior.SingleRow) != 0; } get { return (AllowedCommandBehaviors & CommandBehavior.SingleRow) != 0; }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment