I'm used to Classic Asp, where I never used the DAL / BLL concept, and now I'm learning MVC and trying to stay away from BAD habits (for example, writing SQL queries on the ASP page itself). I read about the data access layer and business logic ... they make sense, but I'm trying to figure out how to put them in the current application.
Its a shopping app.
I currently DO NOT use EF or SQL for Entities, a plain old ADO.NET where my functions return a DataTable.
Let me give you an example.
1 - I need to Return Products From SQL Table 2 - My Products Model Class will hold the SQL Table output 3 - and then I will show the output to View
Product Request
Select * From Products Where title = 'Bluh'
ProductsModelView.vb
Class ProductsModelView Public title as string Public sku as string ....etc End Class
Now my view will simply display the result (from the list (ProductModelView))
Now my question is: how can I add DAL and BAL levels over stages.
source share