国产探花免费观看_亚洲丰满少妇自慰呻吟_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;
}



}
}



發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 石柱| 瓮安县| 潜山县| 乐都县| 桐乡市| 桐城市| 岚皋县| 吉首市| 朝阳县| 武穴市| 丰台区| 中阳县| 河间市| 甘孜| 扶绥县| 内乡县| 贵溪市| 德惠市| 博乐市| 那坡县| 苏州市| 大英县| 景宁| 无为县| 南溪县| 榆林市| 苏尼特右旗| 监利县| 榕江县| 三都| 湛江市| 驻马店市| 昭平县| 浦江县| 潜山县| 岳池县| 炎陵县| 黄平县| 双桥区| 尼木县| 阳曲县|