📄 dataset1.cs
字号:
}
public System.Decimal goodprice {
get {
try {
return ((System.Decimal)(this[this.tablecustomergoods.goodpriceColumn]));
}
catch (InvalidCastException e) {
throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
}
}
set {
this[this.tablecustomergoods.goodpriceColumn] = value;
}
}
public string goodnum {
get {
try {
return ((string)(this[this.tablecustomergoods.goodnumColumn]));
}
catch (InvalidCastException e) {
throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
}
}
set {
this[this.tablecustomergoods.goodnumColumn] = value;
}
}
public bool IsgoodnmNull() {
return this.IsNull(this.tablecustomergoods.goodnmColumn);
}
public void SetgoodnmNull() {
this[this.tablecustomergoods.goodnmColumn] = System.Convert.DBNull;
}
public bool IsgoodpriceNull() {
return this.IsNull(this.tablecustomergoods.goodpriceColumn);
}
public void SetgoodpriceNull() {
this[this.tablecustomergoods.goodpriceColumn] = System.Convert.DBNull;
}
public bool IsgoodnumNull() {
return this.IsNull(this.tablecustomergoods.goodnumColumn);
}
public void SetgoodnumNull() {
this[this.tablecustomergoods.goodnumColumn] = System.Convert.DBNull;
}
}
[System.Diagnostics.DebuggerStepThrough()]
public class customergoodsRowChangeEvent : EventArgs {
private customergoodsRow eventRow;
private DataRowAction eventAction;
public customergoodsRowChangeEvent(customergoodsRow row, DataRowAction action) {
this.eventRow = row;
this.eventAction = action;
}
public customergoodsRow Row {
get {
return this.eventRow;
}
}
public DataRowAction Action {
get {
return this.eventAction;
}
}
}
[System.Diagnostics.DebuggerStepThrough()]
public class goodDataTable : DataTable, System.Collections.IEnumerable {
private DataColumn columngoodid;
private DataColumn columngoodnm;
private DataColumn columngoodprice;
private DataColumn columngoodnum;
internal goodDataTable() :
base("good") {
this.InitClass();
}
internal goodDataTable(DataTable table) :
base(table.TableName) {
if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
this.CaseSensitive = table.CaseSensitive;
}
if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
this.Locale = table.Locale;
}
if ((table.Namespace != table.DataSet.Namespace)) {
this.Namespace = table.Namespace;
}
this.Prefix = table.Prefix;
this.MinimumCapacity = table.MinimumCapacity;
this.DisplayExpression = table.DisplayExpression;
}
[System.ComponentModel.Browsable(false)]
public int Count {
get {
return this.Rows.Count;
}
}
internal DataColumn goodidColumn {
get {
return this.columngoodid;
}
}
internal DataColumn goodnmColumn {
get {
return this.columngoodnm;
}
}
internal DataColumn goodpriceColumn {
get {
return this.columngoodprice;
}
}
internal DataColumn goodnumColumn {
get {
return this.columngoodnum;
}
}
public goodRow this[int index] {
get {
return ((goodRow)(this.Rows[index]));
}
}
public event goodRowChangeEventHandler goodRowChanged;
public event goodRowChangeEventHandler goodRowChanging;
public event goodRowChangeEventHandler goodRowDeleted;
public event goodRowChangeEventHandler goodRowDeleting;
public void AddgoodRow(goodRow row) {
this.Rows.Add(row);
}
public goodRow AddgoodRow(int goodid, string goodnm, System.Decimal goodprice, int goodnum) {
goodRow rowgoodRow = ((goodRow)(this.NewRow()));
rowgoodRow.ItemArray = new object[] {
goodid,
goodnm,
goodprice,
goodnum};
this.Rows.Add(rowgoodRow);
return rowgoodRow;
}
public goodRow FindBygoodid(int goodid) {
return ((goodRow)(this.Rows.Find(new object[] {
goodid})));
}
public System.Collections.IEnumerator GetEnumerator() {
return this.Rows.GetEnumerator();
}
public override DataTable Clone() {
goodDataTable cln = ((goodDataTable)(base.Clone()));
cln.InitVars();
return cln;
}
protected override DataTable CreateInstance() {
return new goodDataTable();
}
internal void InitVars() {
this.columngoodid = this.Columns["goodid"];
this.columngoodnm = this.Columns["goodnm"];
this.columngoodprice = this.Columns["goodprice"];
this.columngoodnum = this.Columns["goodnum"];
}
private void InitClass() {
this.columngoodid = new DataColumn("goodid", typeof(int), null, System.Data.MappingType.Element);
this.Columns.Add(this.columngoodid);
this.columngoodnm = new DataColumn("goodnm", typeof(string), null, System.Data.MappingType.Element);
this.Columns.Add(this.columngoodnm);
this.columngoodprice = new DataColumn("goodprice", typeof(System.Decimal), null, System.Data.MappingType.Element);
this.Columns.Add(this.columngoodprice);
this.columngoodnum = new DataColumn("goodnum", typeof(int), null, System.Data.MappingType.Element);
this.Columns.Add(this.columngoodnum);
this.Constraints.Add(new UniqueConstraint("Constraint1", new DataColumn[] {
this.columngoodid}, true));
this.columngoodid.AllowDBNull = false;
this.columngoodid.Unique = true;
}
public goodRow NewgoodRow() {
return ((goodRow)(this.NewRow()));
}
protected override DataRow NewRowFromBuilder(DataRowBuilder builder) {
return new goodRow(builder);
}
protected override System.Type GetRowType() {
return typeof(goodRow);
}
protected override void OnRowChanged(DataRowChangeEventArgs e) {
base.OnRowChanged(e);
if ((this.goodRowChanged != null)) {
this.goodRowChanged(this, new goodRowChangeEvent(((goodRow)(e.Row)), e.Action));
}
}
protected override void OnRowChanging(DataRowChangeEventArgs e) {
base.OnRowChanging(e);
if ((this.goodRowChanging != null)) {
this.goodRowChanging(this, new goodRowChangeEvent(((goodRow)(e.Row)), e.Action));
}
}
protected override void OnRowDeleted(DataRowChangeEventArgs e) {
base.OnRowDeleted(e);
if ((this.goodRowDeleted != null)) {
this.goodRowDeleted(this, new goodRowChangeEvent(((goodRow)(e.Row)), e.Action));
}
}
protected override void OnRowDeleting(DataRowChangeEventArgs e) {
base.OnRowDeleting(e);
if ((this.goodRowDeleting != null)) {
this.goodRowDeleting(this, new goodRowChangeEvent(((goodRow)(e.Row)), e.Action));
}
}
public void RemovegoodRow(goodRow row) {
this.Rows.Remove(row);
}
}
[System.Diagnostics.DebuggerStepThrough()]
public class goodRow : DataRow {
private goodDataTable tablegood;
internal goodRow(DataRowBuilder rb) :
base(rb) {
this.tablegood = ((goodDataTable)(this.Table));
}
public int goodid {
get {
return ((int)(this[this.tablegood.goodidColumn]));
}
set {
this[this.tablegood.goodidColumn] = value;
}
}
public string goodnm {
get {
try {
return ((string)(this[this.tablegood.goodnmColumn]));
}
catch (InvalidCastException e) {
throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
}
}
set {
this[this.tablegood.goodnmColumn] = value;
}
}
public System.Decimal goodprice {
get {
try {
return ((System.Decimal)(this[this.tablegood.goodpriceColumn]));
}
catch (InvalidCastException e) {
throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
}
}
set {
this[this.tablegood.goodpriceColumn] = value;
}
}
public int goodnum {
get {
try {
return ((int)(this[this.tablegood.goodnumColumn]));
}
catch (InvalidCastException e) {
throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
}
}
set {
this[this.tablegood.goodnumColumn] = value;
}
}
public bool IsgoodnmNull() {
return this.IsNull(this.tablegood.goodnmColumn);
}
public void SetgoodnmNull() {
this[this.tablegood.goodnmColumn] = System.Convert.DBNull;
}
public bool IsgoodpriceNull() {
return this.IsNull(this.tablegood.goodpriceColumn);
}
public void SetgoodpriceNull() {
this[this.tablegood.goodpriceColumn] = System.Convert.DBNull;
}
public bool IsgoodnumNull() {
return this.IsNull(this.tablegood.goodnumColumn);
}
public void SetgoodnumNull() {
this[this.tablegood.goodnumColumn] = System.Convert.DBNull;
}
}
[System.Diagnostics.DebuggerStepThrough()]
public class goodRowChangeEvent : EventArgs {
private goodRow eventRow;
private DataRowAction eventAction;
public goodRowChangeEvent(goodRow row, DataRowAction action) {
this.eventRow = row;
this.eventAction = action;
}
public goodRow Row {
get {
return this.eventRow;
}
}
public DataRowAction Action {
get {
return this.eventAction;
}
}
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -