最新下载
热门教程
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
连接到oracl数据库(二 )
时间:2022-07-02 12:09:34 编辑:袖梨 来源:一聚教程网
经典:
using System;
using System.Data.OleDb;
namespace CourseEditor.Logic
{
///
/// Summary description for DB.
///
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方式都极方便的继承:)
using System;
using System.Data.OleDb;
namespace CourseEditor.Logic
{
///
/// Summary description for DB.
///
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方式都极方便的继承:)
相关文章
- 逆水寒手游橙戒流火幻荧什么时候上线 04-25
- 原神仆人阵容搭配推荐 04-25
- 恶意不息铁匠铺怎么升级 04-25
- 原神龙蜥特急斯库拉号成就怎么达成 04-25
- 恶意不息浅滩双子掉落什么 04-25
- 原神仆人阿蕾奇诺武器推荐 04-25