Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

I had an interview today and I looked at their ASP.Net/VB.Net app. I was told that the app interacts with AS400/IBM and SQL Server;therefor, the ex-developer developed 2 sets of "data" tier...one to interact with AS400 and one to interact with SQL Server.

 

My question is: did he actually need to develop 2 sets of "data" layer/tier code?? Couldnt there be logic to use, for example, this data connection, if it's AS400..go down this path if it's SQl Server?? How would you design a data layer/tier to interact with 2 databases?

Posted

He was probably too stupid to figure out how to build a common interface between the databases.

 

There are a few ways to build an api to interact with multiple db servers.

Looks at the ado.net design. Common interfaces and base classes, and then specific objects when it comes to actually connecting and running queries on the server. Or you can use objects that themselves check for the type of db, such as odbc.

 

Also, there are third party persistence api's that are able to interact with any db's they have drivers for.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...