#region Properties
+ public override string CommandText {
+ get {
+ string commandText = base.CommandText;
+ if (CommandType != CommandType.StoredProcedure ||
+ string.IsNullOrEmpty (commandText) ||
+ commandText [0] == '[' ||
+ commandText.IndexOf ('.') >= 0)
+ return commandText;
+
+ string trimmedCommandText = commandText.TrimEnd ();
+ if (trimmedCommandText.Length > 0 && trimmedCommandText [trimmedCommandText.Length - 1] != ')')
+ commandText = String.Concat ("[", commandText, "]");
+
+ return commandText;
+ }
+ set {
+ base.CommandText = value;
+ }
+ }
+
public new SqlConnection Connection\r
{\r
get { return (SqlConnection)base.Connection; }\r