I'm working on a dotnet web application that connects to db2 database, currently we are using odbc driver, via odbc gateway server to fetch the data from db2, but it has so much problems.

what is the best connection from dotnet to db2?
Is it recommended to connect directly to db2 server, or , it is better to go through some gateway server, and what could be that server?

the db2 server version:
db2 8.1 for zos

Your answers would be great help
Thank you,