PrepAway - Latest Free Exam Questions & Answers

What should you recommend?

You are designing an n-tier solution that includes a Windows Presentation Foundation (WPF) client application. The WPF application connects to a middle-tier server that runs the data access layer. The data access layer connects to a Microsoft SQL Server 2008 database and to a mainframe-based database.

The mainframe-based database will be replaced in one year.

You have the following requirements:
Centrally manage all database connections.
Minimize changes to the code base when the database is replaced. Ensure that the WPF application will not need to be redeployed when the database is replaced.

You need to recommend an approach for designing the data access layer.

What should you recommend?

PrepAway - Latest Free Exam Questions & Answers

A.
Create a data access layer class that uses a database factory class to access all databases. Add the connection string information for the databases to the configuration file for the WPF application

B.
Add the connection string information for the databases to the configuration file for the WPF application.
Implement one class in the WPF application for each data source.

C.
Create a data access layer class that uses a database factory class to access all databases. Add the connection string information for the databases to the configuration file for the data access layer class.

D.
Add the connection string information for the databases to the configuration file for the WPF application.
Implement a database factory class from within the WPF application.

Explanation:
Configuration files for class libraries are ignored at runtime. The connections tring must be in the root of the calling application.

2 Comments on “What should you recommend?

  1. Valencia says:

    I blog often and I truly appreciate your content. This
    great article has truly peaked my interest. I’m going to bookmark your site and keep checking for new details about
    once per week. I subscribed to your RSS feed too.




    0



    0
  2. Jose says:

    I’m planning to write a literature blog, and I want to get as much readers as possible, even those who don’t like books much, to be able to encourage them to read. Suggestions? No bashing please!.




    0



    0

Leave a Reply