📄 testlibrarydataset.designer.cs
字号:
this[this.tableSQuestion.ChoiceCColumn] = value;
}
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
public string ChoiceD {
get {
try {
return ((string)(this[this.tableSQuestion.ChoiceDColumn]));
}
catch (System.InvalidCastException e) {
throw new System.Data.StrongTypingException("表“SQuestion”中列“ChoiceD”的值为 DBNull。", e);
}
}
set {
this[this.tableSQuestion.ChoiceDColumn] = value;
}
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
public byte Answer {
get {
try {
return ((byte)(this[this.tableSQuestion.AnswerColumn]));
}
catch (System.InvalidCastException e) {
throw new System.Data.StrongTypingException("表“SQuestion”中列“Answer”的值为 DBNull。", e);
}
}
set {
this[this.tableSQuestion.AnswerColumn] = value;
}
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
public byte Difficulty {
get {
try {
return ((byte)(this[this.tableSQuestion.DifficultyColumn]));
}
catch (System.InvalidCastException e) {
throw new System.Data.StrongTypingException("表“SQuestion”中列“Difficulty”的值为 DBNull。", e);
}
}
set {
this[this.tableSQuestion.DifficultyColumn] = value;
}
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
public bool IsChoiceANull() {
return this.IsNull(this.tableSQuestion.ChoiceAColumn);
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
public void SetChoiceANull() {
this[this.tableSQuestion.ChoiceAColumn] = System.Convert.DBNull;
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
public bool IsChoiceBNull() {
return this.IsNull(this.tableSQuestion.ChoiceBColumn);
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
public void SetChoiceBNull() {
this[this.tableSQuestion.ChoiceBColumn] = System.Convert.DBNull;
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
public bool IsChoiceCNull() {
return this.IsNull(this.tableSQuestion.ChoiceCColumn);
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
public void SetChoiceCNull() {
this[this.tableSQuestion.ChoiceCColumn] = System.Convert.DBNull;
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
public bool IsChoiceDNull() {
return this.IsNull(this.tableSQuestion.ChoiceDColumn);
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
public void SetChoiceDNull() {
this[this.tableSQuestion.ChoiceDColumn] = System.Convert.DBNull;
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
public bool IsAnswerNull() {
return this.IsNull(this.tableSQuestion.AnswerColumn);
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
public void SetAnswerNull() {
this[this.tableSQuestion.AnswerColumn] = System.Convert.DBNull;
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
public bool IsDifficultyNull() {
return this.IsNull(this.tableSQuestion.DifficultyColumn);
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
public void SetDifficultyNull() {
this[this.tableSQuestion.DifficultyColumn] = System.Convert.DBNull;
}
}
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")]
public class MQuestionRowChangeEvent : System.EventArgs {
private MQuestionRow eventRow;
private System.Data.DataRowAction eventAction;
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
public MQuestionRowChangeEvent(MQuestionRow row, System.Data.DataRowAction action) {
this.eventRow = row;
this.eventAction = action;
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
public MQuestionRow Row {
get {
return this.eventRow;
}
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
public System.Data.DataRowAction Action {
get {
return this.eventAction;
}
}
}
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")]
public class SQuestionRowChangeEvent : System.EventArgs {
private SQuestionRow eventRow;
private System.Data.DataRowAction eventAction;
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
public SQuestionRowChangeEvent(SQuestionRow row, System.Data.DataRowAction action) {
this.eventRow = row;
this.eventAction = action;
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
public SQuestionRow Row {
get {
return this.eventRow;
}
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
public System.Data.DataRowAction Action {
get {
return this.eventAction;
}
}
}
}
}
namespace CTestApp.TestLibraryDataSetTableAdapters {
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.ComponentModel.ToolboxItem(true)]
[System.ComponentModel.DataObjectAttribute(true)]
[System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
", Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
[System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
public partial class MQuestionTableAdapter : System.ComponentModel.Component {
private System.Data.SqlClient.SqlDataAdapter _adapter;
private System.Data.SqlClient.SqlConnection _connection;
private System.Data.SqlClient.SqlCommand[] _commandCollection;
private bool _clearBeforeFill;
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
public MQuestionTableAdapter() {
this.ClearBeforeFill = true;
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
private System.Data.SqlClient.SqlDataAdapter Adapter {
get {
if ((this._adapter == null)) {
this.InitAdapter();
}
return this._adapter;
}
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
internal System.Data.SqlClient.SqlConnection Connection {
get {
if ((this._connection == null)) {
this.InitConnection();
}
return this._connection;
}
set {
this._connection = value;
if ((this.Adapter.InsertCommand != null)) {
this.Adapter.InsertCommand.Connection = value;
}
if ((this.Adapter.DeleteCommand != null)) {
this.Adapter.DeleteCommand.Connection = value;
}
if ((this.Adapter.UpdateCommand != null)) {
this.Adapter.UpdateCommand.Connection = value;
}
for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
if ((this.CommandCollection[i] != null)) {
((System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
}
}
}
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
protected System.Data.SqlClient.SqlCommand[] CommandCollection {
get {
if ((this._commandCollection == null)) {
this.InitCommandCollection();
}
return this._commandCollection;
}
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
public bool ClearBeforeFill {
get {
return this._clearBeforeFill;
}
set {
this._clearBeforeFill = value;
}
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
private void InitAdapter() {
this._adapter = new System.Data.SqlClient.SqlDataAdapter();
System.Data.Common.DataTableMapping tableMapping = new System.Data.Common.DataTableMapping();
tableMapping.SourceTable = "Table";
tableMapping.DataSetTable = "MQuestion";
tableMapping.ColumnMappings.Add("Number", "Number");
tableMapping.ColumnMappings.Add("Question", "Question");
tableMapping.ColumnMappings.Add("ChoiceA", "ChoiceA");
tableMapping.ColumnMappings.Add("ChoiceB", "ChoiceB");
tableMapping.ColumnMappings.Add("ChoiceC", "ChoiceC");
tableMapping.ColumnMappings.Add("ChoiceD", "ChoiceD");
tableMapping.ColumnMappings.Add("Answer", "Answer");
tableMapping.ColumnMappings.Add("Difficulty", "Difficulty");
this._adapter.TableMappings.Add(tableMapping);
this._adapter.DeleteCommand = new System.Data.SqlClient.SqlCommand();
this._adapter.DeleteCommand.Connection = this.Connection;
this._adapter.DeleteCommand.CommandText = @"DELETE FROM [dbo].[MQuestion] WHERE (([Number] = @Original_Number) AND ([Question] = @Original_Question) AND ((@IsNull_ChoiceA = 1 AND [ChoiceA] IS NULL) OR ([ChoiceA] = @Original_ChoiceA)) AND ((@IsNull_ChoiceB = 1 AND [ChoiceB] IS NULL) OR ([ChoiceB] = @Original_ChoiceB)) AND ((@IsNull_ChoiceC = 1 AND [ChoiceC] IS NULL) OR ([ChoiceC] = @Original_ChoiceC)) AND ((@IsNull_ChoiceD = 1 AND [ChoiceD] IS NULL) OR ([ChoiceD] = @Original_ChoiceD)) AND ((@IsNull_Answer = 1 AND [Answer] IS NULL) OR ([Answer] = @Original_Answer)) AND ((@IsNull_Difficulty = 1 AND [Difficulty] IS NULL) OR ([Difficulty] = @Original_Difficulty)))";
this._adapter.DeleteCommand.CommandType = System.Data.CommandType.Text;
this._adapter.DeleteCommand.Parameters.Add(new System.Data.SqlClient.SqlParameter("@Original_Number", System.Data.SqlDbType.Int, 0, System.Data.ParameterDirection.Input, 0, 0, "Number", System.Data.DataRowVersion.Original, false, null, "", "", ""));
this._adapter.DeleteCommand.Parameters.Add(new System.Data.SqlClient.SqlParameter("@Original_Question", System.Data.SqlDbType.NVarChar, 0, System.Data.ParameterDirection.Input, 0, 0, "Question", System.Data.DataRowVersion.Original, false, null, "", "", ""));
this._adapter.DeleteCommand.Parameters.Add(new System.Data.SqlClient.SqlParameter("@IsNull_ChoiceA", System.Data.SqlDbType.Int, 0, System.Data.ParameterDirection.Input, 0, 0, "ChoiceA", System.Data.DataRowVersion.Original, true, null, "", "", ""));
this._adapter.DeleteCommand.Parameters.Add(new System.Data.SqlClient.SqlParameter("@Original_ChoiceA", System.Data.SqlDbType.NVarChar, 0, System.Data.ParameterDirection.Input, 0, 0, "ChoiceA", System.Data.DataRowVersion.Original, false, null, "", "", ""));
this._adapter.DeleteCommand.Parameters.Add(new System.Data.SqlClient.SqlParameter("@IsNull_ChoiceB", System.Data.SqlDbType.Int, 0, System.Data.ParameterDirection.Input, 0, 0, "ChoiceB", System.Data.DataRowVersion.Original, true, null, "", "", ""));
this._adapter.DeleteCommand.Parameters.Add(new System.Data.SqlClient.SqlParameter("@Original_ChoiceB", System.Data.SqlDbType.NVarChar, 0, System.Data.ParameterDirection.Input, 0, 0, "ChoiceB", System.Data.DataRowVersion.Original, false, null, "", "", ""));
this._adapter.DeleteCommand.Parameters.Add(new System.Data.SqlClient.SqlParameter("@IsNull_ChoiceC", System.Data.SqlDbType.Int, 0, System.Data.ParameterDirection.Input, 0, 0, "ChoiceC", System.Data.DataRowVersion.Original, true, null, "", "", ""
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -