using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Mesnac.Basic
{
///
/// 数据源项
///
[Serializable]
public class DataSourceItem
{
private string name;
private string driver;
private string server;
private string userName;
private string password;
private string database;
private int connectionTimeout = 5;
private string driverAssembly;
private string driverClass;
private string dataSourceClass;
///
/// 数据源名称
///
public string Name
{
get { return name; }
set { name = value; }
}
///
/// 数据驱动名称
///
public string Driver
{
get { return driver; }
set { driver = value; }
}
///
/// 服务器
///
public string Server
{
get { return server; }
set { server = value; }
}
///
/// 用户名
///
public string UserName
{
get { return userName; }
set { userName = value; }
}
///
/// 密码
///
public string Password
{
get { return password; }
set { password = value; }
}
///
/// 数据库
///
public string Database
{
get { return database; }
set { database = value; }
}
///
/// 连接超时
///
public int ConnectionTimeout
{
get { return connectionTimeout; }
set { connectionTimeout = value; }
}
///
/// 数据驱动程序集
///
public string DriverAssembly
{
get { return driverAssembly; }
set { driverAssembly = value; }
}
///
/// 驱动类
///
public string DriverClass
{
get { return driverClass; }
set { driverClass = value; }
}
///
/// 数据源类
///
public string DataSourceClass
{
get { return dataSourceClass; }
set { dataSourceClass = value; }
}
}
}