📄 databasedataset.designer.cs
字号:
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
[System.ComponentModel.DataObjectMethodAttribute(System.ComponentModel.DataObjectMethodType.Fill, false)]
public virtual int FillByName(DatabaseDataSet.LinkDataTable dataTable, string name) {
this.Adapter.SelectCommand = this.CommandCollection[2];
if ((name == null)) {
throw new System.ArgumentNullException("name");
}
else {
this.Adapter.SelectCommand.Parameters[0].Value = ((string)(name));
}
if ((this.ClearBeforeFill == true)) {
dataTable.Clear();
}
int returnValue = this.Adapter.Fill(dataTable);
return returnValue;
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
[System.ComponentModel.DataObjectMethodAttribute(System.ComponentModel.DataObjectMethodType.Select, false)]
public virtual DatabaseDataSet.LinkDataTable GetDataByName(string name) {
this.Adapter.SelectCommand = this.CommandCollection[2];
if ((name == null)) {
throw new System.ArgumentNullException("name");
}
else {
this.Adapter.SelectCommand.Parameters[0].Value = ((string)(name));
}
DatabaseDataSet.LinkDataTable dataTable = new DatabaseDataSet.LinkDataTable();
this.Adapter.Fill(dataTable);
return dataTable;
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
public virtual int Update(DatabaseDataSet.LinkDataTable dataTable) {
return this.Adapter.Update(dataTable);
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
public virtual int Update(DatabaseDataSet dataSet) {
return this.Adapter.Update(dataSet, "Link");
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
public virtual int Update(System.Data.DataRow dataRow) {
return this.Adapter.Update(new System.Data.DataRow[] {
dataRow});
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
public virtual int Update(System.Data.DataRow[] dataRows) {
return this.Adapter.Update(dataRows);
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
[System.ComponentModel.DataObjectMethodAttribute(System.ComponentModel.DataObjectMethodType.Delete, true)]
public virtual int Delete(int p1) {
this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(p1));
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.DataObjectMethodAttribute(System.ComponentModel.DataObjectMethodType.Insert, true)]
public virtual int Insert(string p1, string p2, string p3, string p4, string p5, string p6) {
if ((p1 == null)) {
throw new System.ArgumentNullException("p1");
}
else {
this.Adapter.InsertCommand.Parameters[0].Value = ((string)(p1));
}
if ((p2 == null)) {
throw new System.ArgumentNullException("p2");
}
else {
this.Adapter.InsertCommand.Parameters[1].Value = ((string)(p2));
}
if ((p3 == null)) {
throw new System.ArgumentNullException("p3");
}
else {
this.Adapter.InsertCommand.Parameters[2].Value = ((string)(p3));
}
if ((p4 == null)) {
this.Adapter.InsertCommand.Parameters[3].Value = System.DBNull.Value;
}
else {
this.Adapter.InsertCommand.Parameters[3].Value = ((string)(p4));
}
if ((p5 == null)) {
this.Adapter.InsertCommand.Parameters[4].Value = System.DBNull.Value;
}
else {
this.Adapter.InsertCommand.Parameters[4].Value = ((string)(p5));
}
if ((p6 == null)) {
this.Adapter.InsertCommand.Parameters[5].Value = System.DBNull.Value;
}
else {
this.Adapter.InsertCommand.Parameters[5].Value = ((string)(p6));
}
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.DataObjectMethodAttribute(System.ComponentModel.DataObjectMethodType.Update, true)]
public virtual int Update(string p1, string p2, string p3, string p4, string p5, string p6, int p7) {
if ((p1 == null)) {
throw new System.ArgumentNullException("p1");
}
else {
this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(p1));
}
if ((p2 == null)) {
throw new System.ArgumentNullException("p2");
}
else {
this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(p2));
}
if ((p3 == null)) {
throw new System.ArgumentNullException("p3");
}
else {
this.Adapter.UpdateCommand.Parameters[2].Value = ((string)(p3));
}
if ((p4 == null)) {
this.Adapter.UpdateCommand.Parameters[3].Value = System.DBNull.Value;
}
else {
this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(p4));
}
if ((p5 == null)) {
this.Adapter.UpdateCommand.Parameters[4].Value = System.DBNull.Value;
}
else {
this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(p5));
}
if ((p6 == null)) {
this.Adapter.UpdateCommand.Parameters[5].Value = System.DBNull.Value;
}
else {
this.Adapter.UpdateCommand.Parameters[5].Value = ((string)(p6));
}
this.Adapter.UpdateCommand.Parameters[6].Value = ((int)(p7));
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();
}
}
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
[System.ComponentModel.DataObjectMethodAttribute(System.ComponentModel.DataObjectMethodType.Delete, false)]
public virtual int DeleteQuery(int p1) {
System.Data.SqlServerCe.SqlCeCommand command = this.CommandCollection[1];
command.Parameters[0].Value = ((int)(p1));
System.Data.ConnectionState previousConnectionState = command.Connection.State;
if (((command.Connection.State & System.Data.ConnectionState.Open)
!= System.Data.ConnectionState.Open)) {
command.Connection.Open();
}
int returnValue;
try {
returnValue = command.ExecuteNonQuery();
}
finally {
if ((previousConnectionState == System.Data.ConnectionState.Closed)) {
command.Connection.Close();
}
}
return returnValue;
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
[System.ComponentModel.DataObjectMethodAttribute(System.ComponentModel.DataObjectMethodType.Update, false)]
public virtual int UpdateQuery(string p1, string p2, string p3, string p4, string p5, string p6, int p7) {
System.Data.SqlServerCe.SqlCeCommand command = this.CommandCollection[3];
if ((p1 == null)) {
throw new System.ArgumentNullException("p1");
}
else {
command.Parameters[0].Value = ((string)(p1));
}
if ((p2 == null)) {
throw new System.ArgumentNullException("p2");
}
else {
command.Parameters[1].Value = ((string)(p2));
}
if ((p3 == null)) {
throw new System.ArgumentNullException("p3");
}
else {
command.Parameters[2].Value = ((string)(p3));
}
if ((p4 == null)) {
command.Parameters[3].Value = System.DBNull.Value;
}
else {
command.Parameters[3].Value = ((string)(p4));
}
if ((p5 == null)) {
command.Parameters[4].Value = System.DBNull.Value;
}
else {
command.Parameters[4].Value = ((string)(p5));
}
if ((p6 == null)) {
command.Parameters[5].Value = System.DBNull.Value;
}
else {
command.Parameters[5].Value = ((string)(p6));
}
command.Parameters[6].Value = ((int)(p7));
System.Data.ConnectionState previousConnectionState = command.Connection.State;
if (((command.Connection.State & System.Data.ConnectionState.Open)
!= System.Data.ConnectionState.Open)) {
command.Connection.Open();
}
int returnValue;
try {
returnValue = command.ExecuteNonQuery();
}
finally {
if ((previousConnectionState == System.Data.ConnectionState.Closed)) {
command.Connection.Close();
}
}
return returnValue;
}
}
}
namespace DatabaseDataSetUtil {
using System;
using System.Data;
public partial class DesignerUtil {
public static bool IsDesignTime() {
// Determine if this instance is running against .NET Framework by using the MSCoreLib PublicKeyToken
System.Reflection.Assembly mscorlibAssembly = typeof(int).Assembly;
if ((mscorlibAssembly != null)) {
if (mscorlibAssembly.FullName.ToUpper().EndsWith("B77A5C561934E089")) {
return true;
}
}
return false;
}
public static bool IsRunTime() {
// Determine if this instance is running against .NET Compact Framework by using the MSCoreLib PublicKeyToken
System.Reflection.Assembly mscorlibAssembly = typeof(int).Assembly;
if ((mscorlibAssembly != null)) {
if (mscorlibAssembly.FullName.ToUpper().EndsWith("969DB8053D3322AC")) {
return true;
}
}
return false;
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -