You work as an application developer at Contoso.com. You use Microsoft .NET Framework 3.5 and Microsoft ADO.NET to develop an application. You want to make sure that the application is operative to any type of database. What should you do?()
A. Set the database driver name in the connection string of the application, and then the connection object as follows: DbConnection connection = new OdbcConnection(connectionString);
B. Create the connection object as follows: DbProviderFactory factoryDbProviderFactories.GetFactory(databaseProviderName); DbConnection connection =factory.CreateConnection();
Create the connection object as follows: DbProviderFactory factory = DbProviderFactories.GetFactory("System.Data.Odbc"); DbConnection connection = factory.CreateConnection();
D. Set the database driver name in the connection string of the application, and then the connection object as follows:DbConnection connection = new OleDbConnection(connectionString);
查看答案
电热恒温水浴锅每个孔的直径都是根据被加热器皿大小来选择的。
A. 正确
B. 错误
翻卸指令由()。
A. 班长下达
B. 运矿汽车司机传达
C. 推土机司机传达
D. 调度室下达
未取得《建筑工程施工许可证》的,建筑工程承包合同注明的开工日期在2016年10月30日前的建筑工程项目为老项目。
A. 正确
B. 错误