天津投入产出系统后端
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

54 lines
1.3 KiB

using System;
using System.Text;
using System.Collections.Generic;
namespace Common.Data
{
/// <summary>
/// 功能:数据源信息
/// 作者:王昊昇
/// 时间:2012.2.8
/// </summary>
public class DataAccessInfo : IDisposable
{
/// <summary>
/// 数据源类别
/// </summary>
public DataAccessType DataAccessType { get; set; }
/// <summary>
/// 数据源的实例
/// </summary>
public IDataHelper DataAccessInstance { get; set; }
/// <summary>
/// 包含该类型的动态链接库文件路径
/// </summary>
public string DllPath { get; set; }
/// <summary>
/// 能够实例化该类所使用的完整路径
/// </summary>
public string ClassPath { get; set; }
/// <summary>
/// 数据库信息列表
/// </summary>
public List<DataBaseInfo> DataBaseList { get; set; }
/// <summary>
/// 释放所有资源
/// </summary>
public void Dispose()
{
foreach (var d in DataBaseList)
{
d.Dispose();
}
DataBaseList.Clear();
DataBaseList = null;
}
}
}