⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 datadeleteoperation.cs

📁 一个通用的数据库访问层
💻 CS
字号:
using System;
using System.Data;
using System.Data.OleDb;
using System.Collections;
using System.Windows.Forms;

namespace YariSoft.DBUtil
{
	public class DataDeleteOperation : DBBaseOperation
	{
		#region Constructor/Destructor
		public DataDeleteOperation( OleDbConnection Connection, DataView Source, ArrayList SelectedRows )
			:base ( Connection, Source, SelectedRows )
		{
			this.increaseProgress = false;
		}
		#endregion

		#region Protected functions
		protected override string GetProgressCaption()
		{
			return "Delete rows";
		}
		protected override string GetProgressMessage()
		{
			return "Delete rows from table '" + this.source.Table.TableName + "'";
		}
		protected override bool ExecOperation( int Position )
		{
			this.source.Delete((( int )this.selectedRows[Position]));
			return true;
		}

		#endregion
	}
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -