diff options
Diffstat (limited to 'mcs/class/System.Data/System.Data.SqlClient/SqlCommand.cs')
-rw-r--r-- | mcs/class/System.Data/System.Data.SqlClient/SqlCommand.cs | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/mcs/class/System.Data/System.Data.SqlClient/SqlCommand.cs b/mcs/class/System.Data/System.Data.SqlClient/SqlCommand.cs index 08464f30ddd..cf8d775363a 100644 --- a/mcs/class/System.Data/System.Data.SqlClient/SqlCommand.cs +++ b/mcs/class/System.Data/System.Data.SqlClient/SqlCommand.cs @@ -127,9 +127,7 @@ namespace System.Data.SqlClient { } [DataCategory ("Data")] -#if !NET_2_0 [DataSysDescription ("Command text to execute.")] -#endif [DefaultValue ("")] [EditorAttribute ("Microsoft.VSDesigner.Data.SQL.Design.SqlCommandTextEditor, "+ Consts.AssemblyMicrosoft_VSDesigner, "System.Drawing.Design.UITypeEditor, "+ Consts.AssemblySystem_Drawing )] [RefreshProperties (RefreshProperties.All)] @@ -146,9 +144,7 @@ namespace System.Data.SqlClient { } } -#if !NET_2_0 [DataSysDescription ("Time to wait for command to execute.")] -#endif [DefaultValue (30)] public #if NET_2_0 @@ -164,9 +160,7 @@ namespace System.Data.SqlClient { } [DataCategory ("Data")] -#if !NET_2_0 [DataSysDescription ("How to interpret the CommandText.")] -#endif [DefaultValue (CommandType.Text)] [RefreshProperties (RefreshProperties.All)] public @@ -187,9 +181,7 @@ namespace System.Data.SqlClient { [DataCategory ("Behavior")] [DefaultValue (null)] -#if !NET_2_0 [DataSysDescription ("Connection used by the command.")] -#endif [EditorAttribute ("Microsoft.VSDesigner.Data.Design.DbConnectionEditor, "+ Consts.AssemblyMicrosoft_VSDesigner, "System.Drawing.Design.UITypeEditor, "+ Consts.AssemblySystem_Drawing )] public #if NET_2_0 @@ -218,9 +210,7 @@ namespace System.Data.SqlClient { } [DataCategory ("Data")] -#if !NET_2_0 [DataSysDescription ("The parameters collection.")] -#endif [DesignerSerializationVisibility (DesignerSerializationVisibility.Content)] public #if NET_2_0 @@ -257,9 +247,7 @@ namespace System.Data.SqlClient { } [Browsable (false)] -#if !NET_2_0 [DataSysDescription ("The transaction used by the command.")] -#endif [DesignerSerializationVisibility (DesignerSerializationVisibility.Hidden)] public new SqlTransaction Transaction { get { return transaction; } @@ -267,9 +255,7 @@ namespace System.Data.SqlClient { } [DataCategory ("Behavior")] -#if !NET_2_0 [DataSysDescription ("When used by a DataAdapter.Update, how command results are applied to the current DataRow.")] -#endif [DefaultValue (UpdateRowSource.Both)] public #if NET_2_0 @@ -305,10 +291,6 @@ namespace System.Data.SqlClient { if ((behavior & CommandBehavior.CloseConnection) != 0) Connection.Close (); - - // Reset the behavior - behavior = CommandBehavior.Default; - Tds.SequentialAccess = false; } public new SqlParameter CreateParameter () @@ -413,8 +395,6 @@ namespace System.Data.SqlClient { ValidateCommand ("ExecuteReader"); try { this.behavior = behavior; - if ((behavior & CommandBehavior.SequentialAccess) != 0) - Tds.SequentialAccess = true; Execute (behavior, true); Connection.DataReader = new SqlDataReader (this); } |