?? servicedcomponent.cs
字號:
using System;
using System.Data;
using System.Data.SqlClient;
using System.EnterpriseServices;
namespace infoWeb.WebModules.Data
{
public abstract class ServicedDbObject : ServicedComponent
{
protected SqlConnection Connection;
private string connectionString;
protected string ConnectionString
{
get
{
return connectionString;
}
}
// place all of the helper methods from DbObject here.
protected override void Construct( string constructString )
{
connectionString = constructString;
}
protected override void Activate()
{
Connection = new SqlConnection( connectionString );
}
protected override void Deactivate()
{
Connection = null;
}
}
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -