Hi,
I am using 3-tier architecture using C# as code behind language. I am making BO , BLL , DAL. I am using store procedure for insert, update ,delete , select Operation.
BO
I am making property of database field. For each database table i am making seperate BO.
DAL
I am making static method for insert update delete select operation by passing the object of BO. For each database table i am making seperate DAL_tablename
BLL
Business logic is used to call the DAL and get the data. ALL business logic are written there which need to check before calling the data.
For each database table i am making seperate storeprocedure and in that for particular table insert update delete selec t operation are there.
Now i need advance architecture. When i Delete data i need to delete for all child table to. And when i need to save data i need to save data in Master table as well as child table. If any update is happen in Master table then its also update in child table. In BO i am making object of foreign key table so that when i get the data the data is also get in that object. Its like employMaster table and employLeaveDeta il. Then in BO of employMaster i am making object of employleaveDeta il because employMaster has leaveDetail. has a relationship is there between table.
Please guide me i am much confuse how to achieve this task using pure oops
Thanks in advance
I am using 3-tier architecture using C# as code behind language. I am making BO , BLL , DAL. I am using store procedure for insert, update ,delete , select Operation.
BO
I am making property of database field. For each database table i am making seperate BO.
DAL
I am making static method for insert update delete select operation by passing the object of BO. For each database table i am making seperate DAL_tablename
BLL
Business logic is used to call the DAL and get the data. ALL business logic are written there which need to check before calling the data.
For each database table i am making seperate storeprocedure and in that for particular table insert update delete selec t operation are there.
Now i need advance architecture. When i Delete data i need to delete for all child table to. And when i need to save data i need to save data in Master table as well as child table. If any update is happen in Master table then its also update in child table. In BO i am making object of foreign key table so that when i get the data the data is also get in that object. Its like employMaster table and employLeaveDeta il. Then in BO of employMaster i am making object of employleaveDeta il because employMaster has leaveDetail. has a relationship is there between table.
Please guide me i am much confuse how to achieve this task using pure oops
Thanks in advance
Comment