I am presently trying to write a simple application that stores some client data. I understand the separation of the form Layer, Business Logic and Database access logic; however what I can not figure out is when you have accessed the data the best way to return the data from the DAL to the BLL layer and without to much work to the presentation layer.
I thought about using a class to store the data at the lowest level and have that returned through the various levels but this still seems a little messy and there is the problem of persistence in the respect that if the class is disposable so that it cleans up after itself the returned values are lost.
What I need is an example in c# that stores an ID, Firstname, lastname in a database called client using SQL.
As I said I know the basics and I have programming experience but this has completely eluded me as to the tidiest and most robust way of doing this.
Thanks for your time in advance.