Hello,
I have started migrating my winform application from selfservicing to adapter.
I'm unsure about the best way to deal with DataAccessAdapter objects.
Which is better ?
1) instantiating a new DataAccessAdapter everytime you need to interact with the database and then closing and disposing it.
2) Creating a DataAccessAdapter once when the application is started, storing it somewhere (for example in a static property), and disposing it when the application is closed.
Knowing that fetches/saves will target the same database 95% of the time.
Any hints would be greatly appreciated.
Thanks in advance