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

📄 dataset2.cs

📁 Visual C#.NET数据库开发经典案例解析,这里有1到3的案例
💻 CS
📖 第 1 页 / 共 5 页
字号:
                }
                set {
                    this[this.table物料主文件.物料特性cColumn] = value;
                }
            }
            
            public string 物料特性d {
                get {
                    try {
                        return ((string)(this[this.table物料主文件.物料特性dColumn]));
                    }
                    catch (InvalidCastException e) {
                        throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
                    }
                }
                set {
                    this[this.table物料主文件.物料特性dColumn] = value;
                }
            }
            
            public System.Decimal 长 {
                get {
                    try {
                        return ((System.Decimal)(this[this.table物料主文件.长Column]));
                    }
                    catch (InvalidCastException e) {
                        throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
                    }
                }
                set {
                    this[this.table物料主文件.长Column] = value;
                }
            }
            
            public System.Decimal 宽 {
                get {
                    try {
                        return ((System.Decimal)(this[this.table物料主文件.宽Column]));
                    }
                    catch (InvalidCastException e) {
                        throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
                    }
                }
                set {
                    this[this.table物料主文件.宽Column] = value;
                }
            }
            
            public System.Decimal 高 {
                get {
                    try {
                        return ((System.Decimal)(this[this.table物料主文件.高Column]));
                    }
                    catch (InvalidCastException e) {
                        throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
                    }
                }
                set {
                    this[this.table物料主文件.高Column] = value;
                }
            }
            
            public System.Decimal 净重 {
                get {
                    try {
                        return ((System.Decimal)(this[this.table物料主文件.净重Column]));
                    }
                    catch (InvalidCastException e) {
                        throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
                    }
                }
                set {
                    this[this.table物料主文件.净重Column] = value;
                }
            }
            
            public string 品牌 {
                get {
                    try {
                        return ((string)(this[this.table物料主文件.品牌Column]));
                    }
                    catch (InvalidCastException e) {
                        throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
                    }
                }
                set {
                    this[this.table物料主文件.品牌Column] = value;
                }
            }
            
            public string 颜色 {
                get {
                    try {
                        return ((string)(this[this.table物料主文件.颜色Column]));
                    }
                    catch (InvalidCastException e) {
                        throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
                    }
                }
                set {
                    this[this.table物料主文件.颜色Column] = value;
                }
            }
            
            public string 等级 {
                get {
                    try {
                        return ((string)(this[this.table物料主文件.等级Column]));
                    }
                    catch (InvalidCastException e) {
                        throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
                    }
                }
                set {
                    this[this.table物料主文件.等级Column] = value;
                }
            }
            
            public int 进货提前期 {
                get {
                    try {
                        return ((int)(this[this.table物料主文件.进货提前期Column]));
                    }
                    catch (InvalidCastException e) {
                        throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
                    }
                }
                set {
                    this[this.table物料主文件.进货提前期Column] = value;
                }
            }
            
            public int 准备周期 {
                get {
                    try {
                        return ((int)(this[this.table物料主文件.准备周期Column]));
                    }
                    catch (InvalidCastException e) {
                        throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
                    }
                }
                set {
                    this[this.table物料主文件.准备周期Column] = value;
                }
            }
            
            public int 生产周期 {
                get {
                    try {
                        return ((int)(this[this.table物料主文件.生产周期Column]));
                    }
                    catch (InvalidCastException e) {
                        throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
                    }
                }
                set {
                    this[this.table物料主文件.生产周期Column] = value;
                }
            }
            
            public System.Decimal 最小包装量 {
                get {
                    try {
                        return ((System.Decimal)(this[this.table物料主文件.最小包装量Column]));
                    }
                    catch (InvalidCastException e) {
                        throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
                    }
                }
                set {
                    this[this.table物料主文件.最小包装量Column] = value;
                }
            }
            
            public System.Decimal 最低销售量 {
                get {
                    try {
                        return ((System.Decimal)(this[this.table物料主文件.最低销售量Column]));
                    }
                    catch (InvalidCastException e) {
                        throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
                    }
                }
                set {
                    this[this.table物料主文件.最低销售量Column] = value;
                }
            }
            
            public System.Decimal 批量 {
                get {
                    try {
                        return ((System.Decimal)(this[this.table物料主文件.批量Column]));
                    }
                    catch (InvalidCastException e) {
                        throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
                    }
                }
                set {
                    this[this.table物料主文件.批量Column] = value;
                }
            }
            
            public System.Decimal 最高库存 {
                get {
                    try {
                        return ((System.Decimal)(this[this.table物料主文件.最高库存Column]));
                    }
                    catch (InvalidCastException e) {
                        throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
                    }
                }
                set {
                    this[this.table物料主文件.最高库存Column] = value;
                }
            }
            
            public System.Decimal 最低库存 {
                get {
                    try {
                        return ((System.Decimal)(this[this.table物料主文件.最低库存Column]));
                    }
                    catch (InvalidCastException e) {
                        throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
                    }
                }
                set {
                    this[this.table物料主文件.最低库存Column] = value;
                }
            }
            
            public int 库存期限 {
                get {
                    try {
                        return ((int)(this[this.table物料主文件.库存期限Column]));
                    }
                    catch (InvalidCastException e) {
                        throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
                    }
                }
                set {
                    this[this.table物料主文件.库存期限Column] = value;
                }
            }
            
            public string 录入者 {
                get {
                    try {
                        return ((string)(this[this.table物料主文件.录入者Column]));
                    }
                    catch (InvalidCastException e) {
                        throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
                    }
                }
                set {
                    this[this.table物料主文件.录入者Column] = value;
                }
            }
            
            public int 录入日期 {
                get {
                    try {
                        return ((int)(this[this.table物料主文件.录入日期Column]));
                    }
                    catch (InvalidCastException e) {
                        throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
                    }
                }
                set {
                    this[this.table物料主文件.录入日期Column] = value;
                }
            }
            
            public int 低层码 {
                get {
                    try {
                        return ((int)(this[this.table物料主文件.低层码Column]));
                    }
                    catch (InvalidCastException e) {
                        throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
                    }
                }
                set {
                    this[this.table物料主文件.低层码Column] = value;
                }
            }
            
            public string 指定供货商 {
                get {
                    try {
                        return ((string)(this[this.table物料主文件.指定供货商Column]));
                    }
                    catch (InvalidCastException e) {
                        throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
                    }
                }
                set {
                    this[this.table物料主文件.指定供货商Column] = value;
                }
            }
            
            public string 定货策略 {
                get {
                    try {
                        return ((string)(this[this.table物料主文件.定货策略Column]));
                    }
                    catch (InvalidCastException e) {
                        throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
                    }
                }
                set {
                    this[this.table物料主文件.定货策略Column] = value;

⌨️ 快捷键说明

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