interface.cs

来自「一个数据库操作类」· CS 代码 · 共 80 行

CS
80
字号
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 + =
减小字号Ctrl + -
显示快捷键?