employeedataset.designer.cs

来自「Visual C#2005程序设计教程」· CS 代码 · 共 1,344 行 · 第 1/5 页

CS
1,344
字号
                attribute1.Name = "namespace";
                attribute1.FixedValue = ds.Namespace;
                type.Attributes.Add(attribute1);
                System.Xml.Schema.XmlSchemaAttribute attribute2 = new System.Xml.Schema.XmlSchemaAttribute();
                attribute2.Name = "tableTypeName";
                attribute2.FixedValue = "payDataTable";
                type.Attributes.Add(attribute2);
                type.Particle = sequence;
                return type;
            }
        }
        
        [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")]
        public partial class employeeRow : System.Data.DataRow {
            
            private employeeDataTable tableemployee;
            
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            internal employeeRow(System.Data.DataRowBuilder rb) : 
                    base(rb) {
                this.tableemployee = ((employeeDataTable)(this.Table));
            }
            
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public string 编号 {
                get {
                    return ((string)(this[this.tableemployee.编号Column]));
                }
                set {
                    this[this.tableemployee.编号Column] = value;
                }
            }
            
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public string 姓名 {
                get {
                    try {
                        return ((string)(this[this.tableemployee.姓名Column]));
                    }
                    catch (System.InvalidCastException e) {
                        throw new System.Data.StrongTypingException("表“employee”中列“姓名”的值为 DBNull。", e);
                    }
                }
                set {
                    this[this.tableemployee.姓名Column] = value;
                }
            }
            
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public string 性别 {
                get {
                    try {
                        return ((string)(this[this.tableemployee.性别Column]));
                    }
                    catch (System.InvalidCastException e) {
                        throw new System.Data.StrongTypingException("表“employee”中列“性别”的值为 DBNull。", e);
                    }
                }
                set {
                    this[this.tableemployee.性别Column] = value;
                }
            }
            
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public short 年龄 {
                get {
                    try {
                        return ((short)(this[this.tableemployee.年龄Column]));
                    }
                    catch (System.InvalidCastException e) {
                        throw new System.Data.StrongTypingException("表“employee”中列“年龄”的值为 DBNull。", e);
                    }
                }
                set {
                    this[this.tableemployee.年龄Column] = value;
                }
            }
            
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public string 部门 {
                get {
                    try {
                        return ((string)(this[this.tableemployee.部门Column]));
                    }
                    catch (System.InvalidCastException e) {
                        throw new System.Data.StrongTypingException("表“employee”中列“部门”的值为 DBNull。", e);
                    }
                }
                set {
                    this[this.tableemployee.部门Column] = value;
                }
            }
            
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public string 职务 {
                get {
                    try {
                        return ((string)(this[this.tableemployee.职务Column]));
                    }
                    catch (System.InvalidCastException e) {
                        throw new System.Data.StrongTypingException("表“employee”中列“职务”的值为 DBNull。", e);
                    }
                }
                set {
                    this[this.tableemployee.职务Column] = value;
                }
            }
            
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public bool Is姓名Null() {
                return this.IsNull(this.tableemployee.姓名Column);
            }
            
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public void Set姓名Null() {
                this[this.tableemployee.姓名Column] = System.Convert.DBNull;
            }
            
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public bool Is性别Null() {
                return this.IsNull(this.tableemployee.性别Column);
            }
            
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public void Set性别Null() {
                this[this.tableemployee.性别Column] = System.Convert.DBNull;
            }
            
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public bool Is年龄Null() {
                return this.IsNull(this.tableemployee.年龄Column);
            }
            
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public void Set年龄Null() {
                this[this.tableemployee.年龄Column] = System.Convert.DBNull;
            }
            
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public bool Is部门Null() {
                return this.IsNull(this.tableemployee.部门Column);
            }
            
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public void Set部门Null() {
                this[this.tableemployee.部门Column] = System.Convert.DBNull;
            }
            
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public bool Is职务Null() {
                return this.IsNull(this.tableemployee.职务Column);
            }
            
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public void Set职务Null() {
                this[this.tableemployee.职务Column] = System.Convert.DBNull;
            }
        }
        
        [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")]
        public partial class payRow : System.Data.DataRow {
            
            private payDataTable tablepay;
            
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            internal payRow(System.Data.DataRowBuilder rb) : 
                    base(rb) {
                this.tablepay = ((payDataTable)(this.Table));
            }
            
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public string 编号 {
                get {
                    return ((string)(this[this.tablepay.编号Column]));
                }
                set {
                    this[this.tablepay.编号Column] = value;
                }
            }
            
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public float 基本工资 {
                get {
                    try {
                        return ((float)(this[this.tablepay.基本工资Column]));
                    }
                    catch (System.InvalidCastException e) {
                        throw new System.Data.StrongTypingException("表“pay”中列“基本工资”的值为 DBNull。", e);
                    }
                }
                set {
                    this[this.tablepay.基本工资Column] = value;
                }
            }
            
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public float 职务工资 {
                get {
                    try {
                        return ((float)(this[this.tablepay.职务工资Column]));
                    }
                    catch (System.InvalidCastException e) {
                        throw new System.Data.StrongTypingException("表“pay”中列“职务工资”的值为 DBNull。", e);
                    }
                }
                set {
                    this[this.tablepay.职务工资Column] = value;
                }
            }
            
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public float 补贴 {
                get {
                    try {
                        return ((float)(this[this.tablepay.补贴Column]));
                    }
                    catch (System.InvalidCastException e) {
                        throw new System.Data.StrongTypingException("表“pay”中列“补贴”的值为 DBNull。", e);
                    }
                }
                set {
                    this[this.tablepay.补贴Column] = value;
                }
            }
            
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public float 奖金 {
                get {
                    try {
                        return ((float)(this[this.tablepay.奖金Column]));
                    }
                    catch (System.InvalidCastException e) {
                        throw new System.Data.StrongTypingException("表“pay”中列“奖金”的值为 DBNull。", e);
                    }
                }
                set {
                    this[this.tablepay.奖金Column] = value;
                }
            }
            
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public float 扣税 {
                get {
                    try {
                        return ((float)(this[this.tablepay.扣税Column]));
                    }
                    catch (System.InvalidCastException e) {
                        throw new System.Data.StrongTypingException("表“pay”中列“扣税”的值为 DBNull。", e);
                    }
                }
                set {
                    this[this.tablepay.扣税Column] = value;
                }
            }
            
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public double 应发工资 {
                get {
                    try {
                        return ((double)(this[this.tablepay.应发工资Column]));
                    }
                    catch (System.InvalidCastException e) {
                        throw new System.Data.StrongTypingException("表“pay”中列“应发工资”的值为 DBNull。", e);
                    }
                }
                set {
                    this[this.tablepay.应发工资Column] = value;
                }
            }

⌨️ 快捷键说明

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