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

📄 interface.cs

📁 一个数据库操作类
💻 CS
字号:
using System;

namespace XBase
{
	/// <summary>
	/// Title: IInsertRecorderable interface
	/// Description: interface for insert recorder
	/// Author: tide Hitachi Software Engineering Co., Ltd
	/// Create Date: 2004/11/12
	/// </summary>
	public interface IInsertRecorderable
	{
		bool InsertRecorder(IInsertRecorderable IInsertRecorderable_);
	}
	/// <summary>
	/// Title: IEditRecorderable interface
	/// Description: interface for edit recorder
	/// Author: tide Hitachi Software Engineering Co., Ltd
	/// Create Date: 2004/11/12
	/// </summary>
	public interface IEditRecorderable
	{
		bool EditRecorder(IEditRecorderable IEditRecorderable_);
	}
	/// <summary>
	/// Title: IDelRecorderable interface
	/// Description: interface for delete recorder
	/// Author: tide Hitachi Software Engineering Co., Ltd
	/// Create Date: 2004/11/12
	/// </summary>
	public interface IDelRecorderable
	{
		bool DelRecorder(IDelRecorderable IDelRecorderable_);
	}
	/// <summary>
	/// Title: IRecorderable interface
	/// Description: interface for operater recorder
	/// Author: tide Hitachi Software Engineering Co., Ltd
	/// Create Date: 2004/11/12
	/// </summary>
	public interface IRecorderable
	{
		bool InsertRecorder(IRecorderable IRecorderable_);
		bool EditRecorder(IRecorderable IRecorderable_);
		bool DelRecorder(IRecorderable IRecorderable_);
	}
	/// <summary>
	/// Title: IConnectStrable interface
	/// Description: interface for connection string
	/// Author: tide Hitachi Software Engineering Co., Ltd
	/// Create Date: 2004/11/12
	/// </summary>
	public interface IConnectStrable
	{
		bool GetConnectStr(IConnectStrable IConnectStrable_);
	}
	/*
	 * private bool GetConn()
		{
			try
			{
				//Get connect string from web.config
				System.Configuration.AppSettingsReader appSettings = new System.Configuration.AppSettingsReader();
				m_strConn  = (string) (appSettings.GetValue("ConnectionString", typeof(string)));
				return true;
			}
			catch(Exception err_)
			{
				//Throw error
				m_strErr = "Get DataBase ConnString false" + this.GetErrorMessage(err_);
				return false;
			}
		}
		
	<appSettings>
 <add key="ConnectionString" value="Data Source = TIDESOFT-CL;Initial Catalog=prsinfo;User ID=sa;Password=sa;Trusted_Connection=no;" />
 </appSettings>
	 * */
}

⌨️ 快捷键说明

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