You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
lj_plc/Main/Mesnac.Basic/DataSourceItem.cs

108 lines
2.5 KiB
C#

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