User283571144 posted
Hi acmedeepak,
In the example you posedt, it has given a preliminary structure BLL for the data access part.
If you are willing to make the code more structured.
I suggest you an example which is well structured and decoupled regarding to data access.
How to map an ObjectDataSource's Insert(), Update(), and Delete() methods to the methods of BLL classes, as well as how to configure the GridView, DetailsView, and FormView controls to provide data modification capabilities.
https://docs.microsoft.com/en-us/aspnet/web-forms/overview/data-access/editing-inserting-and-deleting-data/an-overview-of-inserting-updating-and-deleting-data-cs
Also:
How to build the Contoso U application as an n-tier application using the ObjectDataSource control and how to handle concurrency and maximize performance.
https://docs.microsoft.com/en-us/aspnet/web-forms/overview/older-versions-getting-started/continuing-with-ef/
DI:
simpleinjector is a tool of Dependency Inject (DI) to make your project decoupling.
https://simpleinjector.readthedocs.io/en/latest/webformsintegration.html
Best Regards,
Brando