hi,
I am writing ASP.NET website in which i break code into layer like form object class, Entity classes for business logic, Controller classes to control multiple entity class and finally data access classes.
All above mentioned class have their saperate dll(s) because Form object an business classes are shred among multiple component of project like website and Apllication (Exe)
I have following doubt
I would like to know whether i am doing right approach as per layered programming or not?
Where should we create object of class inside constructor of parent class or with in a function; Because in my case there are around 8-10 child class need to used inside parent class so where should i create clhild class object in constructor of parent class or inside function of parent class where i am using child object?
As mentioned above layered approach, in which layer i should create database connection?
Please help me?