📄 pubsdataset3.designer.cs
字号:
this._adapter.UpdateCommand.Parameters.Add(new System.Data.SqlClient.SqlParameter("@IsNull_bid", System.Data.SqlDbType.Int, 0, System.Data.ParameterDirection.Input, 0, 0, "bid", System.Data.DataRowVersion.Original, true, null, "", "", ""));
this._adapter.UpdateCommand.Parameters.Add(new System.Data.SqlClient.SqlParameter("@Original_bid", System.Data.SqlDbType.Int, 0, System.Data.ParameterDirection.Input, 0, 0, "bid", System.Data.DataRowVersion.Original, false, null, "", "", ""));
this._adapter.UpdateCommand.Parameters.Add(new System.Data.SqlClient.SqlParameter("@IsNull_uid", System.Data.SqlDbType.Int, 0, System.Data.ParameterDirection.Input, 0, 0, "uid", System.Data.DataRowVersion.Original, true, null, "", "", ""));
this._adapter.UpdateCommand.Parameters.Add(new System.Data.SqlClient.SqlParameter("@Original_uid", System.Data.SqlDbType.Int, 0, System.Data.ParameterDirection.Input, 0, 0, "uid", System.Data.DataRowVersion.Original, false, null, "", "", ""));
this._adapter.UpdateCommand.Parameters.Add(new System.Data.SqlClient.SqlParameter("@IsNull_borrowDate", System.Data.SqlDbType.Int, 0, System.Data.ParameterDirection.Input, 0, 0, "borrowDate", System.Data.DataRowVersion.Original, true, null, "", "", ""));
this._adapter.UpdateCommand.Parameters.Add(new System.Data.SqlClient.SqlParameter("@Original_borrowDate", System.Data.SqlDbType.VarChar, 0, System.Data.ParameterDirection.Input, 0, 0, "borrowDate", System.Data.DataRowVersion.Original, false, null, "", "", ""));
this._adapter.UpdateCommand.Parameters.Add(new System.Data.SqlClient.SqlParameter("@Original_returnDate", System.Data.SqlDbType.VarChar, 0, System.Data.ParameterDirection.Input, 0, 0, "returnDate", System.Data.DataRowVersion.Original, false, null, "", "", ""));
this._adapter.UpdateCommand.Parameters.Add(new System.Data.SqlClient.SqlParameter("@id", System.Data.SqlDbType.Int, 4, System.Data.ParameterDirection.Input, 0, 0, "id", System.Data.DataRowVersion.Current, false, null, "", "", ""));
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
private void InitConnection() {
this._connection = new System.Data.SqlClient.SqlConnection();
this._connection.ConnectionString = global::图书馆管理系统.Properties.Settings.Default.pubsConnectionString;
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
private void InitCommandCollection() {
this._commandCollection = new System.Data.SqlClient.SqlCommand[1];
this._commandCollection[0] = new System.Data.SqlClient.SqlCommand();
this._commandCollection[0].Connection = this.Connection;
this._commandCollection[0].CommandText = "SELECT id, bid, uid, borrowDate, returnDate FROM dbo.states";
this._commandCollection[0].CommandType = System.Data.CommandType.Text;
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
[System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
[System.ComponentModel.DataObjectMethodAttribute(System.ComponentModel.DataObjectMethodType.Fill, true)]
public virtual int Fill(pubsDataSet3.statesDataTable dataTable) {
this.Adapter.SelectCommand = this.CommandCollection[0];
if ((this.ClearBeforeFill == true)) {
dataTable.Clear();
}
int returnValue = this.Adapter.Fill(dataTable);
return returnValue;
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
[System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
[System.ComponentModel.DataObjectMethodAttribute(System.ComponentModel.DataObjectMethodType.Select, true)]
public virtual pubsDataSet3.statesDataTable GetData() {
this.Adapter.SelectCommand = this.CommandCollection[0];
pubsDataSet3.statesDataTable dataTable = new pubsDataSet3.statesDataTable();
this.Adapter.Fill(dataTable);
return dataTable;
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
[System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
public virtual int Update(pubsDataSet3.statesDataTable dataTable) {
return this.Adapter.Update(dataTable);
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
[System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
public virtual int Update(pubsDataSet3 dataSet) {
return this.Adapter.Update(dataSet, "states");
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
[System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
public virtual int Update(System.Data.DataRow dataRow) {
return this.Adapter.Update(new System.Data.DataRow[] {
dataRow});
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
[System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
public virtual int Update(System.Data.DataRow[] dataRows) {
return this.Adapter.Update(dataRows);
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
[System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
[System.ComponentModel.DataObjectMethodAttribute(System.ComponentModel.DataObjectMethodType.Delete, true)]
public virtual int Delete(int Original_id, System.Nullable<int> Original_bid, System.Nullable<int> Original_uid, string Original_borrowDate, string Original_returnDate) {
this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_id));
if ((Original_bid.HasValue == true)) {
this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0));
this.Adapter.DeleteCommand.Parameters[2].Value = ((int)(Original_bid.Value));
}
else {
this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1));
this.Adapter.DeleteCommand.Parameters[2].Value = System.DBNull.Value;
}
if ((Original_uid.HasValue == true)) {
this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(0));
this.Adapter.DeleteCommand.Parameters[4].Value = ((int)(Original_uid.Value));
}
else {
this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(1));
this.Adapter.DeleteCommand.Parameters[4].Value = System.DBNull.Value;
}
if ((Original_borrowDate == null)) {
this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(1));
this.Adapter.DeleteCommand.Parameters[6].Value = System.DBNull.Value;
}
else {
this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(0));
this.Adapter.DeleteCommand.Parameters[6].Value = ((string)(Original_borrowDate));
}
if ((Original_returnDate == null)) {
throw new System.ArgumentNullException("Original_returnDate");
}
else {
this.Adapter.DeleteCommand.Parameters[7].Value = ((string)(Original_returnDate));
}
System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
if (((this.Adapter.DeleteCommand.Connection.State & System.Data.ConnectionState.Open)
!= System.Data.ConnectionState.Open)) {
this.Adapter.DeleteCommand.Connection.Open();
}
try {
int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
return returnValue;
}
finally {
if ((previousConnectionState == System.Data.ConnectionState.Closed)) {
this.Adapter.DeleteCommand.Connection.Close();
}
}
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
[System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
[System.ComponentModel.DataObjectMethodAttribute(System.ComponentModel.DataObjectMethodType.Insert, true)]
public virtual int Insert(System.Nullable<int> bid, System.Nullable<int> uid, string borrowDate, string returnDate) {
if ((bid.HasValue == true)) {
this.Adapter.InsertCommand.Parameters[0].Value = ((int)(bid.Value));
}
else {
this.Adapter.InsertCommand.Parameters[0].Value = System.DBNull.Value;
}
if ((uid.HasValue == true)) {
this.Adapter.InsertCommand.Parameters[1].Value = ((int)(uid.Value));
}
else {
this.Adapter.InsertCommand.Parameters[1].Value = System.DBNull.Value;
}
if ((borrowDate == null)) {
this.Adapter.InsertCommand.Parameters[2].Value = System.DBNull.Value;
}
else {
this.Adapter.InsertCommand.Parameters[2].Value = ((string)(borrowDate));
}
if ((returnDate == null)) {
throw new System.ArgumentNullException("returnDate");
}
else {
this.Adapter.InsertCommand.Parameters[3].Value = ((string)(returnDate));
}
System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
if (((this.Adapter.InsertCommand.Connection.State & System.Data.ConnectionState.Open)
!= System.Data.ConnectionState.Open)) {
this.Adapter.InsertCommand.Connection.Open();
}
try {
int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
return returnValue;
}
finally {
if ((previousConnectionState == System.Data.ConnectionState.Closed)) {
this.Adapter.InsertCommand.Connection.Close();
}
}
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
[System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
[System.ComponentModel.DataObjectMethodAttribute(System.ComponentModel.DataObjectMethodType.Update, true)]
public virtual int Update(System.Nullable<int> bid, System.Nullable<int> uid, string borrowDate, string returnDate, int Original_id, System.Nullable<int> Original_bid, System.Nullable<int> Original_uid, string Original_borrowDate, string Original_returnDate, int id) {
if ((bid.HasValue == true)) {
this.Adapter.UpdateCommand.Parameters[0].Value = ((int)(bid.Value));
}
else {
this.Adapter.UpdateCommand.Parameters[0].Value = System.DBNull.Value;
}
if ((uid.HasValue == true)) {
this.Adapter.UpdateCommand.Parameters[1].Value = ((int)(uid.Value));
}
else {
this.Adapter.UpdateCommand.Parameters[1].Value = System.DBNull.Value;
}
if ((borrowDate == null)) {
this.Adapter.UpdateCommand.Parameters[2].Value = System.DBNull.Value;
}
else {
this.Adapter.UpdateCommand.Parameters[2].Value = ((string)(borrowDate));
}
if ((returnDate == null)) {
throw new System.ArgumentNullException("returnDate");
}
else {
this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(returnDate));
}
this.Adapter.UpdateCommand.Parameters[4].Value = ((int)(Original_id));
if ((Original_bid.HasValue == true)) {
this.Adapter.UpdateCommand.Parameters[5].Value = ((object)(0));
this.Adapter.UpdateCommand.Parameters[6].Value = ((int)(Original_bid.Value));
}
else {
this.Adapter.UpdateCommand.Parameters[5].Value = ((object)(1));
this.Adapter.UpdateCommand.Parameters[6].Value = System.DBNull.Value;
}
if ((Original_uid.HasValue == true)) {
this.Adapter.UpdateCommand.Parameters[7].Value = ((object)(0));
this.Adapter.UpdateCommand.Parameters[8].Value = ((int)(Original_uid.Value));
}
else {
this.Adapter.UpdateCommand.Parameters[7].Value = ((object)(1));
this.Adapter.UpdateCommand.Parameters[8].Value = System.DBNull.Value;
}
if ((Original_borrowDate == null)) {
this.Adapter.UpdateCommand.Parameters[9].Value = ((object)(1));
this.Adapter.UpdateCommand.Parameters[10].Value = System.DBNull.Value;
}
else {
this.Adapter.UpdateCommand.Parameters[9].Value = ((object)(0));
this.Adapter.UpdateCommand.Parameters[10].Value = ((string)(Original_borrowDate));
}
if ((Original_returnDate == null)) {
throw new System.ArgumentNullException("Original_returnDate");
}
else {
this.Adapter.UpdateCommand.Parameters[11].Value = ((string)(Original_returnDate));
}
this.Adapter.UpdateCommand.Parameters[12].Value = ((int)(id));
System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
if (((this.Adapter.UpdateCommand.Connection.State & System.Data.ConnectionState.Open)
!= System.Data.ConnectionState.Open)) {
this.Adapter.UpdateCommand.Connection.Open();
}
try {
int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
return returnValue;
}
finally {
if ((previousConnectionState == System.Data.ConnectionState.Closed)) {
this.Adapter.UpdateCommand.Connection.Close();
}
}
}
}
}
#pragma warning restore 1591
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -