2011年11月6日星期日

TS: MS.NET Framework 3.5, ADO.NET Application Development

You create an application by using the Microsoft .NET Framework 3.5 and Microsoft ADO.NET.

You need to ensure that the application can connect to any type of database.

What should you do?

A. Set the database driver name in the connection string of the application, and then create the

connection object in the following manner.

DbConnection connection = new OdbcConnection(connectionString);

B. Set the database provider name in the connection string of the application, and then create the

connection object in the following manner.

DbConnection connection = new OleDbConnection(connectionString);

C. Create the connection object in the following manner.

DbProviderFactory factory =

DbProviderFactories.GetFactory("System.Data.Odbc");

DbConnection connection = factory.CreateConnection();

D. Create the connection object in the following manner.

DbProviderFactory factory =

DbProviderFactories.GetFactory(databaseProviderName);

DbConnection connection = factory.CreateConnection();

Answer: D
As we all know, is 70-561 (Csharp) study guide used in most IT certification area. 70-561 (CSharp) study guide , Also known as TS: MS.NET Framework 3.5-known, ADO.NET Application Development, is a Microsoft certification.

没有评论:

发表评论