Skip to content

Commit

Permalink
Added methods for Setting object quotes on StoredProcedure.
Browse files Browse the repository at this point in the history
  • Loading branch information
abe545 committed Oct 15, 2016
1 parent 8b59b41 commit eed4800
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions CodeOnlyStoredProcedure/StoredProcedure.cs
Original file line number Diff line number Diff line change
Expand Up @@ -354,6 +354,21 @@ public static void AddGlobalTransformer(IDataTransformer transformer)
/// <remarks>Make sure your connection supports multiple active result sets, or concurrent calls will throw
/// an exception.</remarks>
public static void DisableConnectionCloningForEachCall() => GlobalSettings.Instance.CloneConnectionForEachCall = false;

/// <summary>
/// Allows you to change the default behavior of the object quoting syntax. If not set, the default style is
/// <see cref="ObjectQuoteStyle.Brackets"/>.
/// </summary>
/// <param name="style">THe <see cref="ObjectQuoteStyle"/> to use to define the object quote style.</param>
public static void SetObjectQuoteStyle(ObjectQuoteStyle style) => GlobalSettings.Instance.SetObjectQuoteStyle(style);

/// <summary>
/// Allows you to change the default behavior of the object quoting syntax. If not set, the open quote is "[",
/// and the close quote is "]".
/// </summary>
/// <param name="openQuote">The string to use to start an object quote.</param>
/// <param name="closeQuote">The string to use to close an object quote.</param>
public static void SetObjectQuoteStyle(string openQuote, string closeQuote) => GlobalSettings.Instance.SetObjectQuoteStyle(openQuote, closeQuote);
#endregion

/// <summary>
Expand Down

0 comments on commit eed4800

Please sign in to comment.