⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 mystuinfodbdataset31.designer.cs

📁 利用vs2008+sql2000开发的小型学生信息系统
💻 CS
📖 第 1 页 / 共 4 页
字号:
                get {
                    return ((string)(this[this.tablebeizhu.sidColumn]));
                }
                set {
                    this[this.tablebeizhu.sidColumn] = value;
                }
            }
            
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public string praise {
                get {
                    try {
                        return ((string)(this[this.tablebeizhu.praiseColumn]));
                    }
                    catch (System.InvalidCastException e) {
                        throw new System.Data.StrongTypingException("表“beizhu”中列“praise”的值为 DBNull。", e);
                    }
                }
                set {
                    this[this.tablebeizhu.praiseColumn] = value;
                }
            }
            
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public string punish {
                get {
                    try {
                        return ((string)(this[this.tablebeizhu.punishColumn]));
                    }
                    catch (System.InvalidCastException e) {
                        throw new System.Data.StrongTypingException("表“beizhu”中列“punish”的值为 DBNull。", e);
                    }
                }
                set {
                    this[this.tablebeizhu.punishColumn] = value;
                }
            }
            
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public string beizhu {
                get {
                    try {
                        return ((string)(this[this.tablebeizhu.beizhuColumn]));
                    }
                    catch (System.InvalidCastException e) {
                        throw new System.Data.StrongTypingException("表“beizhu”中列“beizhu”的值为 DBNull。", e);
                    }
                }
                set {
                    this[this.tablebeizhu.beizhuColumn] = value;
                }
            }
            
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public bool IspraiseNull() {
                return this.IsNull(this.tablebeizhu.praiseColumn);
            }
            
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public void SetpraiseNull() {
                this[this.tablebeizhu.praiseColumn] = System.Convert.DBNull;
            }
            
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public bool IspunishNull() {
                return this.IsNull(this.tablebeizhu.punishColumn);
            }
            
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public void SetpunishNull() {
                this[this.tablebeizhu.punishColumn] = System.Convert.DBNull;
            }
            
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public bool IsbeizhuNull() {
                return this.IsNull(this.tablebeizhu.beizhuColumn);
            }
            
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public void SetbeizhuNull() {
                this[this.tablebeizhu.beizhuColumn] = System.Convert.DBNull;
            }
        }
        
        [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")]
        public class beizhuRowChangeEvent : System.EventArgs {
            
            private beizhuRow eventRow;
            
            private System.Data.DataRowAction eventAction;
            
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public beizhuRowChangeEvent(beizhuRow row, System.Data.DataRowAction action) {
                this.eventRow = row;
                this.eventAction = action;
            }
            
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public beizhuRow Row {
                get {
                    return this.eventRow;
                }
            }
            
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public System.Data.DataRowAction Action {
                get {
                    return this.eventAction;
                }
            }
        }
    }
}
namespace StudentInfoMS.mystuInfoDBDataSet3TableAdapters {
    
    
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.ComponentModel.ToolboxItem(true)]
    [System.ComponentModel.DataObjectAttribute(true)]
    [System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
        ", Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
    [System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
    public partial class beizhuTableAdapter : System.ComponentModel.Component {
        
        private System.Data.SqlClient.SqlDataAdapter _adapter;
        
        private System.Data.SqlClient.SqlConnection _connection;
        
        private System.Data.SqlClient.SqlCommand[] _commandCollection;
        
        private bool _clearBeforeFill;
        
        [System.Diagnostics.DebuggerNonUserCodeAttribute()]
        public beizhuTableAdapter() {
            this.ClearBeforeFill = true;
        }
        
        [System.Diagnostics.DebuggerNonUserCodeAttribute()]
        private System.Data.SqlClient.SqlDataAdapter Adapter {
            get {
                if ((this._adapter == null)) {
                    this.InitAdapter();
                }
                return this._adapter;
            }
        }
        
        [System.Diagnostics.DebuggerNonUserCodeAttribute()]
        internal System.Data.SqlClient.SqlConnection Connection {
            get {
                if ((this._connection == null)) {
                    this.InitConnection();
                }
                return this._connection;
            }
            set {
                this._connection = value;
                if ((this.Adapter.InsertCommand != null)) {
                    this.Adapter.InsertCommand.Connection = value;
                }
                if ((this.Adapter.DeleteCommand != null)) {
                    this.Adapter.DeleteCommand.Connection = value;
                }
                if ((this.Adapter.UpdateCommand != null)) {
                    this.Adapter.UpdateCommand.Connection = value;
                }
                for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
                    if ((this.CommandCollection[i] != null)) {
                        ((System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
                    }
                }
            }
        }
        
        [System.Diagnostics.DebuggerNonUserCodeAttribute()]
        protected System.Data.SqlClient.SqlCommand[] CommandCollection {
            get {
                if ((this._commandCollection == null)) {
                    this.InitCommandCollection();
                }
                return this._commandCollection;
            }
        }
        
        [System.Diagnostics.DebuggerNonUserCodeAttribute()]
        public bool ClearBeforeFill {
            get {
                return this._clearBeforeFill;
            }
            set {
                this._clearBeforeFill = value;
            }
        }
        
        [System.Diagnostics.DebuggerNonUserCodeAttribute()]
        private void InitAdapter() {
            this._adapter = new System.Data.SqlClient.SqlDataAdapter();
            System.Data.Common.DataTableMapping tableMapping = new System.Data.Common.DataTableMapping();
            tableMapping.SourceTable = "Table";
            tableMapping.DataSetTable = "beizhu";
            tableMapping.ColumnMappings.Add("sid", "sid");
            tableMapping.ColumnMappings.Add("praise", "praise");
            tableMapping.ColumnMappings.Add("punish", "punish");
            tableMapping.ColumnMappings.Add("beizhu", "beizhu");
            this._adapter.TableMappings.Add(tableMapping);
            this._adapter.DeleteCommand = new System.Data.SqlClient.SqlCommand();
            this._adapter.DeleteCommand.Connection = this.Connection;
            this._adapter.DeleteCommand.CommandText = @"DELETE FROM [dbo].[beizhu] WHERE (([sid] = @Original_sid) AND ((@IsNull_praise = 1 AND [praise] IS NULL) OR ([praise] = @Original_praise)) AND ((@IsNull_punish = 1 AND [punish] IS NULL) OR ([punish] = @Original_punish)) AND ((@IsNull_beizhu = 1 AND [beizhu] IS NULL) OR ([beizhu] = @Original_beizhu)))";
            this._adapter.DeleteCommand.CommandType = System.Data.CommandType.Text;
            this._adapter.DeleteCommand.Parameters.Add(new System.Data.SqlClient.SqlParameter("@Original_sid", System.Data.SqlDbType.VarChar, 0, System.Data.ParameterDirection.Input, 0, 0, "sid", System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.DeleteCommand.Parameters.Add(new System.Data.SqlClient.SqlParameter("@IsNull_praise", System.Data.SqlDbType.Int, 0, System.Data.ParameterDirection.Input, 0, 0, "praise", System.Data.DataRowVersion.Original, true, null, "", "", ""));
            this._adapter.DeleteCommand.Parameters.Add(new System.Data.SqlClient.SqlParameter("@Original_praise", System.Data.SqlDbType.VarChar, 0, System.Data.ParameterDirection.Input, 0, 0, "praise", System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.DeleteCommand.Parameters.Add(new System.Data.SqlClient.SqlParameter("@IsNull_punish", System.Data.SqlDbType.Int, 0, System.Data.ParameterDirection.Input, 0, 0, "punish", System.Data.DataRowVersion.Original, true, null, "", "", ""));
            this._adapter.DeleteCommand.Parameters.Add(new System.Data.SqlClient.SqlParameter("@Original_punish", System.Data.SqlDbType.VarChar, 0, System.Data.ParameterDirection.Input, 0, 0, "punish", System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.DeleteCommand.Parameters.Add(new System.Data.SqlClient.SqlParameter("@IsNull_beizhu", System.Data.SqlDbType.Int, 0, System.Data.ParameterDirection.Input, 0, 0, "beizhu", System.Data.DataRowVersion.Original, true, null, "", "", ""));
            this._adapter.DeleteCommand.Parameters.Add(new System.Data.SqlClient.SqlParameter("@Original_beizhu", System.Data.SqlDbType.VarChar, 0, System.Data.ParameterDirection.Input, 0, 0, "beizhu", System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.InsertCommand = new System.Data.SqlClient.SqlCommand();
            this._adapter.InsertCommand.Connection = this.Connection;
            this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[beizhu] ([sid], [praise], [punish], [beizhu]) VALUES (@sid, @p" +
                "raise, @punish, @beizhu);\r\nSELECT sid, praise, punish, beizhu FROM beizhu WHERE " +
                "(sid = @sid)";
            this._adapter.InsertCommand.CommandType = System.Data.CommandType.Text;
            this._adapter.InsertCommand.Parameters.Add(new System.Data.SqlClient.SqlParameter("@sid", System.Data.SqlDbType.VarChar, 0, System.Data.ParameterDirection.Input, 0, 0, "sid", System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.InsertCommand.Parameters.Add(new System.Data.SqlClient.SqlParameter("@praise", System.Data.SqlDbType.VarChar, 0, System.Data.ParameterDirection.Input, 0, 0, "praise", System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.InsertCommand.Parameters.Add(new System.Data.SqlClient.SqlParameter("@punish", System.Data.SqlDbType.VarChar, 0, System.Data.ParameterDirection.Input, 0, 0, "punish", System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.InsertCommand.Parameters.Add(new System.Data.SqlClient.SqlParameter("@beizhu", System.Data.SqlDbType.VarChar, 0, System.Data.ParameterDirection.Input, 0, 0, "beizhu", System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.UpdateCommand = new System.Data.SqlClient.SqlCommand();
            this._adapter.UpdateCommand.Connection = this.Connection;
            this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[beizhu] SET [sid] = @sid, [praise] = @praise, [punish] = @punish, [beizhu] = @beizhu WHERE (([sid] = @Original_sid) AND ((@IsNull_praise = 1 AND [praise] IS NULL) OR ([praise] = @Original_praise)) AND ((@IsNull_punish = 1 AND [punish] IS NULL) OR ([punish] = @Original_punish)) AND ((@IsNull_beizhu = 1 AND [beizhu] IS NULL) OR ([beizhu] = @Original_beizhu)));
SELECT sid, praise, punish, beizhu FROM beizhu WHERE (sid = @sid)";
            this._adapter.UpdateCommand.CommandType = System.Data.CommandType.Text;
            this._adapter.UpdateCommand.Parameters.Add(new System.Data.SqlClient.SqlParameter("@sid", System.Data.SqlDbType.VarChar, 0, System.Data.ParameterDirection.Input, 0, 0, "sid", System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new System.Data.SqlClient.SqlParameter("@praise", System.Data.SqlDbType.VarChar, 0, System.Data.ParameterDirection.Input, 0, 0, "praise", System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new System.Data.SqlClient.SqlParameter("@punish", System.Data.SqlDbType.VarChar, 0, System.Data.ParameterDirection.Input, 0, 0, "punish", System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new System.Data.SqlClient.SqlParameter("@beizhu", System.Data.SqlDbType.VarChar, 0, System.Data.ParameterDirection.Input, 0, 0, "beizhu", System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new System.Data.SqlClient.SqlParameter("@Original_sid", System.Data.SqlDbType.VarChar, 0, System.Data.ParameterDirection.Input, 0, 0, "sid", System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new System.Data.SqlClient.SqlParameter("@IsNull_praise", System.Data.SqlDbType.Int, 0, System.Data.ParameterDirection.Input, 0, 0, "praise", System.Data.DataRowVersion.Original, true, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new System.Data.SqlClient.SqlParameter("@Original_praise", System.Data.SqlDbType.VarChar, 0, System.Data.ParameterDirection.Input, 0, 0, "praise", System.Data.DataRowVersion.Original, false, null, "", "", ""));

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -