adult_datadataset3.designer.cs
来自「基于决策树和贝叶斯的预测分析器」· CS 代码 · 共 1,349 行 · 第 1/5 页
CS
1,349 行
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
public void Addtestdata2Row(testdata2Row row) {
this.Rows.Add(row);
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
public testdata2Row Addtestdata2Row(string age, string education, string occupation, string sex, string native_country, string makeover50k) {
testdata2Row rowtestdata2Row = ((testdata2Row)(this.NewRow()));
rowtestdata2Row.ItemArray = new object[] {
age,
education,
occupation,
sex,
native_country,
makeover50k};
this.Rows.Add(rowtestdata2Row);
return rowtestdata2Row;
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
public virtual System.Collections.IEnumerator GetEnumerator() {
return this.Rows.GetEnumerator();
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
public override System.Data.DataTable Clone() {
testdata2DataTable cln = ((testdata2DataTable)(base.Clone()));
cln.InitVars();
return cln;
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
protected override System.Data.DataTable CreateInstance() {
return new testdata2DataTable();
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
internal void InitVars() {
this.columnage = base.Columns["age"];
this.columneducation = base.Columns["education"];
this.columnoccupation = base.Columns["occupation"];
this.columnsex = base.Columns["sex"];
this.columnnative_country = base.Columns["native_country"];
this.columnmakeover50k = base.Columns["makeover50k"];
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
private void InitClass() {
this.columnage = new System.Data.DataColumn("age", typeof(string), null, System.Data.MappingType.Element);
base.Columns.Add(this.columnage);
this.columneducation = new System.Data.DataColumn("education", typeof(string), null, System.Data.MappingType.Element);
base.Columns.Add(this.columneducation);
this.columnoccupation = new System.Data.DataColumn("occupation", typeof(string), null, System.Data.MappingType.Element);
base.Columns.Add(this.columnoccupation);
this.columnsex = new System.Data.DataColumn("sex", typeof(string), null, System.Data.MappingType.Element);
base.Columns.Add(this.columnsex);
this.columnnative_country = new System.Data.DataColumn("native_country", typeof(string), null, System.Data.MappingType.Element);
base.Columns.Add(this.columnnative_country);
this.columnmakeover50k = new System.Data.DataColumn("makeover50k", typeof(string), null, System.Data.MappingType.Element);
base.Columns.Add(this.columnmakeover50k);
this.columnage.MaxLength = 15;
this.columneducation.MaxLength = 20;
this.columnoccupation.MaxLength = 30;
this.columnsex.MaxLength = 10;
this.columnnative_country.MaxLength = 30;
this.columnmakeover50k.MaxLength = 10;
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
public testdata2Row Newtestdata2Row() {
return ((testdata2Row)(this.NewRow()));
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
protected override System.Data.DataRow NewRowFromBuilder(System.Data.DataRowBuilder builder) {
return new testdata2Row(builder);
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
protected override System.Type GetRowType() {
return typeof(testdata2Row);
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
protected override void OnRowChanged(System.Data.DataRowChangeEventArgs e) {
base.OnRowChanged(e);
if ((this.testdata2RowChanged != null)) {
this.testdata2RowChanged(this, new testdata2RowChangeEvent(((testdata2Row)(e.Row)), e.Action));
}
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
protected override void OnRowChanging(System.Data.DataRowChangeEventArgs e) {
base.OnRowChanging(e);
if ((this.testdata2RowChanging != null)) {
this.testdata2RowChanging(this, new testdata2RowChangeEvent(((testdata2Row)(e.Row)), e.Action));
}
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
protected override void OnRowDeleted(System.Data.DataRowChangeEventArgs e) {
base.OnRowDeleted(e);
if ((this.testdata2RowDeleted != null)) {
this.testdata2RowDeleted(this, new testdata2RowChangeEvent(((testdata2Row)(e.Row)), e.Action));
}
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
protected override void OnRowDeleting(System.Data.DataRowChangeEventArgs e) {
base.OnRowDeleting(e);
if ((this.testdata2RowDeleting != null)) {
this.testdata2RowDeleting(this, new testdata2RowChangeEvent(((testdata2Row)(e.Row)), e.Action));
}
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
public void Removetestdata2Row(testdata2Row row) {
this.Rows.Remove(row);
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
public static System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(System.Xml.Schema.XmlSchemaSet xs) {
System.Xml.Schema.XmlSchemaComplexType type = new System.Xml.Schema.XmlSchemaComplexType();
System.Xml.Schema.XmlSchemaSequence sequence = new System.Xml.Schema.XmlSchemaSequence();
adult_dataDataSet ds = new adult_dataDataSet();
xs.Add(ds.GetSchemaSerializable());
System.Xml.Schema.XmlSchemaAny any1 = new System.Xml.Schema.XmlSchemaAny();
any1.Namespace = "http://www.w3.org/2001/XMLSchema";
any1.MinOccurs = new decimal(0);
any1.MaxOccurs = decimal.MaxValue;
any1.ProcessContents = System.Xml.Schema.XmlSchemaContentProcessing.Lax;
sequence.Items.Add(any1);
System.Xml.Schema.XmlSchemaAny any2 = new System.Xml.Schema.XmlSchemaAny();
any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
any2.MinOccurs = new decimal(1);
any2.ProcessContents = System.Xml.Schema.XmlSchemaContentProcessing.Lax;
sequence.Items.Add(any2);
System.Xml.Schema.XmlSchemaAttribute attribute1 = new System.Xml.Schema.XmlSchemaAttribute();
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 = "testdata2DataTable";
type.Attributes.Add(attribute2);
type.Particle = sequence;
return type;
}
}
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")]
[System.Serializable()]
[System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
public partial class traindata1DataTable : System.Data.DataTable, System.Collections.IEnumerable {
private System.Data.DataColumn columnage;
private System.Data.DataColumn columnworkclass;
private System.Data.DataColumn columnfnlwgt;
private System.Data.DataColumn columneducation;
private System.Data.DataColumn columneducation_num;
private System.Data.DataColumn columnmarital_status;
private System.Data.DataColumn columnoccupation;
private System.Data.DataColumn columnrelationship;
private System.Data.DataColumn columnrace;
private System.Data.DataColumn columnsex;
private System.Data.DataColumn columncapital_gain;
private System.Data.DataColumn columncapital_loss;
private System.Data.DataColumn columnhours_per_week;
private System.Data.DataColumn columnnative_country;
private System.Data.DataColumn columnmakeover;
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
public traindata1DataTable() {
this.TableName = "traindata1";
this.BeginInit();
this.InitClass();
this.EndInit();
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
internal traindata1DataTable(System.Data.DataTable table) {
this.TableName = 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;
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
protected traindata1DataTable(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) :
base(info, context) {
this.InitVars();
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
public System.Data.DataColumn ageColumn {
get {
return this.columnage;
}
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
public System.Data.DataColumn workclassColumn {
get {
return this.columnworkclass;
}
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
public System.Data.DataColumn fnlwgtColumn {
get {
return this.columnfnlwgt;
}
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
public System.Data.DataColumn educationColumn {
get {
return this.columneducation;
}
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
public System.Data.DataColumn education_numColumn {
get {
return this.columneducation_num;
}
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
public System.Data.DataColumn marital_statusColumn {
get {
return this.columnmarital_status;
}
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
public System.Data.DataColumn occupationColumn {
get {
return this.columnoccupation;
}
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
public System.Data.DataColumn relationshipColumn {
get {
return this.columnrelationship;
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?