📄 mystuinfodbdataset11.designer.cs
字号:
get {
return ((string)(this[this.tablexueji.sidColumn]));
}
set {
this[this.tablexueji.sidColumn] = value;
}
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
public string proname {
get {
try {
return ((string)(this[this.tablexueji.pronameColumn]));
}
catch (System.InvalidCastException e) {
throw new System.Data.StrongTypingException("表“xueji”中列“proname”的值为 DBNull。", e);
}
}
set {
this[this.tablexueji.pronameColumn] = value;
}
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
public string grade {
get {
try {
return ((string)(this[this.tablexueji.gradeColumn]));
}
catch (System.InvalidCastException e) {
throw new System.Data.StrongTypingException("表“xueji”中列“grade”的值为 DBNull。", e);
}
}
set {
this[this.tablexueji.gradeColumn] = value;
}
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
public string _class {
get {
try {
return ((string)(this[this.tablexueji.classColumn]));
}
catch (System.InvalidCastException e) {
throw new System.Data.StrongTypingException("表“xueji”中列“class”的值为 DBNull。", e);
}
}
set {
this[this.tablexueji.classColumn] = value;
}
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
public bool IspronameNull() {
return this.IsNull(this.tablexueji.pronameColumn);
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
public void SetpronameNull() {
this[this.tablexueji.pronameColumn] = System.Convert.DBNull;
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
public bool IsgradeNull() {
return this.IsNull(this.tablexueji.gradeColumn);
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
public void SetgradeNull() {
this[this.tablexueji.gradeColumn] = System.Convert.DBNull;
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
public bool Is_classNull() {
return this.IsNull(this.tablexueji.classColumn);
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
public void Set_classNull() {
this[this.tablexueji.classColumn] = System.Convert.DBNull;
}
}
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")]
public class xuejiRowChangeEvent : System.EventArgs {
private xuejiRow eventRow;
private System.Data.DataRowAction eventAction;
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
public xuejiRowChangeEvent(xuejiRow row, System.Data.DataRowAction action) {
this.eventRow = row;
this.eventAction = action;
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
public xuejiRow Row {
get {
return this.eventRow;
}
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
public System.Data.DataRowAction Action {
get {
return this.eventAction;
}
}
}
}
}
namespace StudentInfoMS.mystuInfoDBDataSet1TableAdapters {
[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 xuejiTableAdapter : 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 xuejiTableAdapter() {
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 = "xueji";
tableMapping.ColumnMappings.Add("sid", "sid");
tableMapping.ColumnMappings.Add("proname", "proname");
tableMapping.ColumnMappings.Add("grade", "grade");
tableMapping.ColumnMappings.Add("class", "class");
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].[xueji] WHERE (([sid] = @Original_sid) AND ((@IsNull_proname = 1 AND [proname] IS NULL) OR ([proname] = @Original_proname)) AND ((@IsNull_grade = 1 AND [grade] IS NULL) OR ([grade] = @Original_grade)) AND ((@IsNull_class = 1 AND [class] IS NULL) OR ([class] = @Original_class)))";
this._adapter.DeleteCommand.CommandType = System.Data.CommandType.Text;
this._adapter.DeleteCommand.Parameters.Add(new System.Data.SqlClient.SqlParameter("@Original_sid", System.Data.SqlDbType.VarChar, 0, System.Data.ParameterDirection.Input, 0, 0, "sid", System.Data.DataRowVersion.Original, false, null, "", "", ""));
this._adapter.DeleteCommand.Parameters.Add(new System.Data.SqlClient.SqlParameter("@IsNull_proname", System.Data.SqlDbType.Int, 0, System.Data.ParameterDirection.Input, 0, 0, "proname", System.Data.DataRowVersion.Original, true, null, "", "", ""));
this._adapter.DeleteCommand.Parameters.Add(new System.Data.SqlClient.SqlParameter("@Original_proname", System.Data.SqlDbType.VarChar, 0, System.Data.ParameterDirection.Input, 0, 0, "proname", System.Data.DataRowVersion.Original, false, null, "", "", ""));
this._adapter.DeleteCommand.Parameters.Add(new System.Data.SqlClient.SqlParameter("@IsNull_grade", System.Data.SqlDbType.Int, 0, System.Data.ParameterDirection.Input, 0, 0, "grade", System.Data.DataRowVersion.Original, true, null, "", "", ""));
this._adapter.DeleteCommand.Parameters.Add(new System.Data.SqlClient.SqlParameter("@Original_grade", System.Data.SqlDbType.VarChar, 0, System.Data.ParameterDirection.Input, 0, 0, "grade", System.Data.DataRowVersion.Original, false, null, "", "", ""));
this._adapter.DeleteCommand.Parameters.Add(new System.Data.SqlClient.SqlParameter("@IsNull_class", System.Data.SqlDbType.Int, 0, System.Data.ParameterDirection.Input, 0, 0, "class", System.Data.DataRowVersion.Original, true, null, "", "", ""));
this._adapter.DeleteCommand.Parameters.Add(new System.Data.SqlClient.SqlParameter("@Original_class", System.Data.SqlDbType.VarChar, 0, System.Data.ParameterDirection.Input, 0, 0, "class", System.Data.DataRowVersion.Original, false, null, "", "", ""));
this._adapter.InsertCommand = new System.Data.SqlClient.SqlCommand();
this._adapter.InsertCommand.Connection = this.Connection;
this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[xueji] ([sid], [proname], [grade], [class]) VALUES (@sid, @pro" +
"name, @grade, @class);\r\nSELECT sid, proname, grade, class FROM xueji WHERE (sid " +
"= @sid)";
this._adapter.InsertCommand.CommandType = System.Data.CommandType.Text;
this._adapter.InsertCommand.Parameters.Add(new System.Data.SqlClient.SqlParameter("@sid", System.Data.SqlDbType.VarChar, 0, System.Data.ParameterDirection.Input, 0, 0, "sid", System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._adapter.InsertCommand.Parameters.Add(new System.Data.SqlClient.SqlParameter("@proname", System.Data.SqlDbType.VarChar, 0, System.Data.ParameterDirection.Input, 0, 0, "proname", System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._adapter.InsertCommand.Parameters.Add(new System.Data.SqlClient.SqlParameter("@grade", System.Data.SqlDbType.VarChar, 0, System.Data.ParameterDirection.Input, 0, 0, "grade", System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._adapter.InsertCommand.Parameters.Add(new System.Data.SqlClient.SqlParameter("@class", System.Data.SqlDbType.VarChar, 0, System.Data.ParameterDirection.Input, 0, 0, "class", System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._adapter.UpdateCommand = new System.Data.SqlClient.SqlCommand();
this._adapter.UpdateCommand.Connection = this.Connection;
this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[xueji] SET [sid] = @sid, [proname] = @proname, [grade] = @grade, [class] = @class WHERE (([sid] = @Original_sid) AND ((@IsNull_proname = 1 AND [proname] IS NULL) OR ([proname] = @Original_proname)) AND ((@IsNull_grade = 1 AND [grade] IS NULL) OR ([grade] = @Original_grade)) AND ((@IsNull_class = 1 AND [class] IS NULL) OR ([class] = @Original_class)));
SELECT sid, proname, grade, class FROM xueji WHERE (sid = @sid)";
this._adapter.UpdateCommand.CommandType = System.Data.CommandType.Text;
this._adapter.UpdateCommand.Parameters.Add(new System.Data.SqlClient.SqlParameter("@sid", System.Data.SqlDbType.VarChar, 0, System.Data.ParameterDirection.Input, 0, 0, "sid", System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._adapter.UpdateCommand.Parameters.Add(new System.Data.SqlClient.SqlParameter("@proname", System.Data.SqlDbType.VarChar, 0, System.Data.ParameterDirection.Input, 0, 0, "proname", System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._adapter.UpdateCommand.Parameters.Add(new System.Data.SqlClient.SqlParameter("@grade", System.Data.SqlDbType.VarChar, 0, System.Data.ParameterDirection.Input, 0, 0, "grade", System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._adapter.UpdateCommand.Parameters.Add(new System.Data.SqlClient.SqlParameter("@class", System.Data.SqlDbType.VarChar, 0, System.Data.ParameterDirection.Input, 0, 0, "class", System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._adapter.UpdateCommand.Parameters.Add(new System.Data.SqlClient.SqlParameter("@Original_sid", System.Data.SqlDbType.VarChar, 0, System.Data.ParameterDirection.Input, 0, 0, "sid", System.Data.DataRowVersion.Original, false, null, "", "", ""));
this._adapter.UpdateCommand.Parameters.Add(new System.Data.SqlClient.SqlParameter("@IsNull_proname", System.Data.SqlDbType.Int, 0, System.Data.ParameterDirection.Input, 0, 0, "proname", System.Data.DataRowVersion.Original, true, null, "", "", ""));
this._adapter.UpdateCommand.Parameters.Add(new System.Data.SqlClient.SqlParameter("@Original_proname", System.Data.SqlDbType.VarChar, 0, System.Data.ParameterDirection.Input, 0, 0, "proname", System.Data.DataRowVersion.Original, false, null, "", "", ""));
this._adapter.UpdateCommand.Parameters.Add(new System.Data.SqlClient.SqlParameter("@IsNull_grade", System.Data.SqlDbType.Int, 0, System.Data.ParameterDirection.Input, 0, 0, "grade", System.Data.DataRowVersion.Original, true, null, "", "", ""));
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -