Skip to content

Commit eed4800

Browse files
committed
Added methods for Setting object quotes on StoredProcedure.
1 parent 8b59b41 commit eed4800

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

CodeOnlyStoredProcedure/StoredProcedure.cs

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -354,6 +354,21 @@ public static void AddGlobalTransformer(IDataTransformer transformer)
354354
/// <remarks>Make sure your connection supports multiple active result sets, or concurrent calls will throw
355355
/// an exception.</remarks>
356356
public static void DisableConnectionCloningForEachCall() => GlobalSettings.Instance.CloneConnectionForEachCall = false;
357+
358+
/// <summary>
359+
/// Allows you to change the default behavior of the object quoting syntax. If not set, the default style is
360+
/// <see cref="ObjectQuoteStyle.Brackets"/>.
361+
/// </summary>
362+
/// <param name="style">THe <see cref="ObjectQuoteStyle"/> to use to define the object quote style.</param>
363+
public static void SetObjectQuoteStyle(ObjectQuoteStyle style) => GlobalSettings.Instance.SetObjectQuoteStyle(style);
364+
365+
/// <summary>
366+
/// Allows you to change the default behavior of the object quoting syntax. If not set, the open quote is "[",
367+
/// and the close quote is "]".
368+
/// </summary>
369+
/// <param name="openQuote">The string to use to start an object quote.</param>
370+
/// <param name="closeQuote">The string to use to close an object quote.</param>
371+
public static void SetObjectQuoteStyle(string openQuote, string closeQuote) => GlobalSettings.Instance.SetObjectQuoteStyle(openQuote, closeQuote);
357372
#endregion
358373

359374
/// <summary>

0 commit comments

Comments
 (0)