How to make general databinding?
ASP.NET
1
Posts
1
Posters
0
Views
1
Watching
-
I'm writing some UI stuff by using ASP.NET with ADO.NET, and I want to make my data binding more general, not specific to SQL db, but easily to be changed if the db source to sth. else, for example, using Cache DB (required ODBC connections). One way to do it, I can add a section in the web.config file to define the db switch, and apply it to my ASP.NET code. However, I need to apply this to every functions which requires DB connections, so, my codes will be a mess. Is there any better way to tackle this problem in ASP.NET? Thanks!