From eed480057b5782bb9339cf8dbccdb9aacafab5bb Mon Sep 17 00:00:00 2001 From: Abraham Heidebrecht Date: Fri, 14 Oct 2016 21:21:21 -0400 Subject: [PATCH] Added methods for Setting object quotes on StoredProcedure. --- CodeOnlyStoredProcedure/StoredProcedure.cs | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/CodeOnlyStoredProcedure/StoredProcedure.cs b/CodeOnlyStoredProcedure/StoredProcedure.cs index c967836..2d3cf12 100644 --- a/CodeOnlyStoredProcedure/StoredProcedure.cs +++ b/CodeOnlyStoredProcedure/StoredProcedure.cs @@ -354,6 +354,21 @@ public static void AddGlobalTransformer(IDataTransformer transformer) /// Make sure your connection supports multiple active result sets, or concurrent calls will throw /// an exception. public static void DisableConnectionCloningForEachCall() => GlobalSettings.Instance.CloneConnectionForEachCall = false; + + /// + /// Allows you to change the default behavior of the object quoting syntax. If not set, the default style is + /// . + /// + /// THe to use to define the object quote style. + public static void SetObjectQuoteStyle(ObjectQuoteStyle style) => GlobalSettings.Instance.SetObjectQuoteStyle(style); + + /// + /// Allows you to change the default behavior of the object quoting syntax. If not set, the open quote is "[", + /// and the close quote is "]". + /// + /// The string to use to start an object quote. + /// The string to use to close an object quote. + public static void SetObjectQuoteStyle(string openQuote, string closeQuote) => GlobalSettings.Instance.SetObjectQuoteStyle(openQuote, closeQuote); #endregion ///