示例#1
0
 public void MSSQLCE()
 {
     ExampleServ es = new ExampleServ();
     DatabaseInfo dinfo = es.servInfo.dbInfo;
     dinfo.dbTypeString = "MSSQLCE";
     dinfo.sqldb = "test.sqlce.sdf";
     dinfo.tables = new Dictionary<String, List<DataColumn>>();
     DatabaseManager dm = new DatabaseManager(es);
     Assert.IsTrue(dm.connectResult);
 }
示例#2
0
 public void MSSQLTest()
 {
     ExampleServ es = new ExampleServ();
     DatabaseInfo dinfo = es.servInfo.dbInfo;
     dinfo.dbTypeString = "MSSQL";
     dinfo.sqlhost = "192.168.1.20";
     dinfo.sqluser = "******";
     dinfo.sqlpass = "******";
     dinfo.sqldb = "SQLServerTest";
     dinfo.tables = new Dictionary<String, List<DataColumn>>();
     DatabaseManager dm = new DatabaseManager(es);
     Assert.IsTrue(dm.connectResult);
 }