📄 testlibrarydataset.designer.cs
字号:
this.TableName = "MQuestion";
this.BeginInit();
this.InitClass();
this.EndInit();
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
internal MQuestionDataTable(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 MQuestionDataTable(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) :
base(info, context) {
this.InitVars();
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
public System.Data.DataColumn NumberColumn {
get {
return this.columnNumber;
}
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
public System.Data.DataColumn QuestionColumn {
get {
return this.columnQuestion;
}
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
public System.Data.DataColumn ChoiceAColumn {
get {
return this.columnChoiceA;
}
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
public System.Data.DataColumn ChoiceBColumn {
get {
return this.columnChoiceB;
}
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
public System.Data.DataColumn ChoiceCColumn {
get {
return this.columnChoiceC;
}
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
public System.Data.DataColumn ChoiceDColumn {
get {
return this.columnChoiceD;
}
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
public System.Data.DataColumn AnswerColumn {
get {
return this.columnAnswer;
}
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
public System.Data.DataColumn DifficultyColumn {
get {
return this.columnDifficulty;
}
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
[System.ComponentModel.Browsable(false)]
public int Count {
get {
return this.Rows.Count;
}
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
public MQuestionRow this[int index] {
get {
return ((MQuestionRow)(this.Rows[index]));
}
}
public event MQuestionRowChangeEventHandler MQuestionRowChanging;
public event MQuestionRowChangeEventHandler MQuestionRowChanged;
public event MQuestionRowChangeEventHandler MQuestionRowDeleting;
public event MQuestionRowChangeEventHandler MQuestionRowDeleted;
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
public void AddMQuestionRow(MQuestionRow row) {
this.Rows.Add(row);
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
public MQuestionRow AddMQuestionRow(int Number, string Question, string ChoiceA, string ChoiceB, string ChoiceC, string ChoiceD, string Answer, byte Difficulty) {
MQuestionRow rowMQuestionRow = ((MQuestionRow)(this.NewRow()));
rowMQuestionRow.ItemArray = new object[] {
Number,
Question,
ChoiceA,
ChoiceB,
ChoiceC,
ChoiceD,
Answer,
Difficulty};
this.Rows.Add(rowMQuestionRow);
return rowMQuestionRow;
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
public MQuestionRow FindByNumber(int Number) {
return ((MQuestionRow)(this.Rows.Find(new object[] {
Number})));
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
public virtual System.Collections.IEnumerator GetEnumerator() {
return this.Rows.GetEnumerator();
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
public override System.Data.DataTable Clone() {
MQuestionDataTable cln = ((MQuestionDataTable)(base.Clone()));
cln.InitVars();
return cln;
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
protected override System.Data.DataTable CreateInstance() {
return new MQuestionDataTable();
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
internal void InitVars() {
this.columnNumber = base.Columns["Number"];
this.columnQuestion = base.Columns["Question"];
this.columnChoiceA = base.Columns["ChoiceA"];
this.columnChoiceB = base.Columns["ChoiceB"];
this.columnChoiceC = base.Columns["ChoiceC"];
this.columnChoiceD = base.Columns["ChoiceD"];
this.columnAnswer = base.Columns["Answer"];
this.columnDifficulty = base.Columns["Difficulty"];
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
private void InitClass() {
this.columnNumber = new System.Data.DataColumn("Number", typeof(int), null, System.Data.MappingType.Element);
base.Columns.Add(this.columnNumber);
this.columnQuestion = new System.Data.DataColumn("Question", typeof(string), null, System.Data.MappingType.Element);
base.Columns.Add(this.columnQuestion);
this.columnChoiceA = new System.Data.DataColumn("ChoiceA", typeof(string), null, System.Data.MappingType.Element);
base.Columns.Add(this.columnChoiceA);
this.columnChoiceB = new System.Data.DataColumn("ChoiceB", typeof(string), null, System.Data.MappingType.Element);
base.Columns.Add(this.columnChoiceB);
this.columnChoiceC = new System.Data.DataColumn("ChoiceC", typeof(string), null, System.Data.MappingType.Element);
base.Columns.Add(this.columnChoiceC);
this.columnChoiceD = new System.Data.DataColumn("ChoiceD", typeof(string), null, System.Data.MappingType.Element);
base.Columns.Add(this.columnChoiceD);
this.columnAnswer = new System.Data.DataColumn("Answer", typeof(string), null, System.Data.MappingType.Element);
base.Columns.Add(this.columnAnswer);
this.columnDifficulty = new System.Data.DataColumn("Difficulty", typeof(byte), null, System.Data.MappingType.Element);
base.Columns.Add(this.columnDifficulty);
this.Constraints.Add(new System.Data.UniqueConstraint("Constraint1", new System.Data.DataColumn[] {
this.columnNumber}, true));
this.columnNumber.AllowDBNull = false;
this.columnNumber.Unique = true;
this.columnQuestion.AllowDBNull = false;
this.columnQuestion.MaxLength = 2048;
this.columnChoiceA.MaxLength = 256;
this.columnChoiceB.MaxLength = 256;
this.columnChoiceC.MaxLength = 256;
this.columnChoiceD.MaxLength = 256;
this.columnAnswer.MaxLength = 4;
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
public MQuestionRow NewMQuestionRow() {
return ((MQuestionRow)(this.NewRow()));
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
protected override System.Data.DataRow NewRowFromBuilder(System.Data.DataRowBuilder builder) {
return new MQuestionRow(builder);
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
protected override System.Type GetRowType() {
return typeof(MQuestionRow);
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
protected override void OnRowChanged(System.Data.DataRowChangeEventArgs e) {
base.OnRowChanged(e);
if ((this.MQuestionRowChanged != null)) {
this.MQuestionRowChanged(this, new MQuestionRowChangeEvent(((MQuestionRow)(e.Row)), e.Action));
}
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
protected override void OnRowChanging(System.Data.DataRowChangeEventArgs e) {
base.OnRowChanging(e);
if ((this.MQuestionRowChanging != null)) {
this.MQuestionRowChanging(this, new MQuestionRowChangeEvent(((MQuestionRow)(e.Row)), e.Action));
}
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
protected override void OnRowDeleted(System.Data.DataRowChangeEventArgs e) {
base.OnRowDeleted(e);
if ((this.MQuestionRowDeleted != null)) {
this.MQuestionRowDeleted(this, new MQuestionRowChangeEvent(((MQuestionRow)(e.Row)), e.Action));
}
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
protected override void OnRowDeleting(System.Data.DataRowChangeEventArgs e) {
base.OnRowDeleting(e);
if ((this.MQuestionRowDeleting != null)) {
this.MQuestionRowDeleting(this, new MQuestionRowChangeEvent(((MQuestionRow)(e.Row)), e.Action));
}
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
public void RemoveMQuestionRow(MQuestionRow 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();
TestLibraryDataSet ds = new TestLibraryDataSet();
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 = "MQuestionDataTable";
type.Attributes.Add(attribute2);
type.Particle = sequence;
return type;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -