经典:
using system;
using system.data.oledb;
namespace courseeditor.logic
{
/// <summary>
/// summary description for db.
/// </summary>
public class db:system.data.oledb.oledbconnection
{
public db()
{
this.connectionstring="provider=msdaora;datasource=orcl_192.168.0.202;user id=test;password=";
}
}
}
在vs.net bulid 9150里面无法继承system.data.sqlclient,不过在beta1里面可以对ado或者sql方式都极方便的继承:)
新闻热点
疑难解答