国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 數據庫 > Access > 正文

ACCESS數據庫訪問組件(四)

2024-09-07 19:04:57
字體:
來源:轉載
供稿:網友

using system;
using system.data;
using system.data.oledb;
using system.collections;


namespace xlang.videoonline.framework.database.access
{
/// <summary>
/// summary description for access_dataviewscollection.
/// </summary>
public class dataviewscollection
{
private database.access.dataview[] _views;

private int _count;

public int count
{
get
{
return _count;
}
}


public dataviewscollection(oledbconnection connection)
{
system.data.datatable schematable = connection.getoledbschematable(oledbschemaguid.tables,
new object[] {null, null,null, "view"});

_count=schematable.rows.count;
_views=new database.access.dataview[_count];

for(int i=0;i<_count;i++)
{
_views[i]=new database.access.dataview(schematable.rows[i][2].tostring());
}
}


public database.access.dataview this [int tableindex]
{
get
{
return _views[tableindex];
}
set
{
_views[tableindex]=value;
}
}


public database.access.dataview this [string viewname]
{
get
{
return this [nametoindex(viewname)];
}
set
{
this [nametoindex(viewname)]=value;
}
}


private int nametoindex(string viewname)
{
for(int i=0;i<_views.length;i++)
{
if(_views[i].name.toupper()==viewname.toupper())
return i;
}
return -1;
}



}
}



發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 绥滨县| 胶南市| 博乐市| 仙桃市| 镇宁| 沾化县| 泸州市| 彭山县| 浦江县| 疏附县| 兰州市| 那曲县| 高要市| 全南县| 本溪| 大同县| 台中市| 宽城| 瓮安县| 甘洛县| 平顶山市| 同德县| 宜都市| 鞍山市| 塔城市| 白银市| 曲沃县| 淮阳县| 通州市| 肇东市| 巴南区| 隆子县| 当雄县| 富锦市| 泗阳县| 林西县| 西藏| 安阳县| 沙湾县| 万山特区| 宿州市|