经典:
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方式都极方便的继承:)