473,385 Members | 1,661 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Advance 3-tier architecture

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 employLeaveDetail. Then in BO of employMaster i am making object of employleaveDetail 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
Jun 13 '10 #1
2 2280
Frinavale
9,735 Expert Mod 8TB
This sounds like a job for the Database to handle.
Your stored procedures should do this.

What database are you using?
Jun 14 '10 #2
Have you looked into Entity Framework? It has OR mapping that you're looking for and knows the relationship between entities (tables). It will handle related records and can be updated or deleted as queried.
Jun 15 '10 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: solartimba | last post by:
I am using the advance() auxiliary STL iterator function to move a map iter forward, but I read that there is no check to keep the iter from pointing past the end of the map. How is this problem...
5
by: Gernot Frisch | last post by:
Hi, what doi I get when I advance too much? std::list<int> L; L.push_back(4); std::list<int>::iterator it = L.begin; std::advance(it, 3); for(; it!=L.end(); ++it) {
2
by: T.Kindermann | last post by:
Hello everybody, i have a advance question about a specific sql problem: My table A have for example 3 columns. in the third column are words seperated by ~. ID COL2 COL3 --------------
3
by: williamc | last post by:
Somebody asked me if it would be possible to add auto-advance to a web form where there are a lot of repetitive 5 character fields. I took a look around the web and found a script, which appears to...
1
by: FZ | last post by:
Hi Gang, I was wondering if a generous person might be able to walk me through what I believe is a pretty simple task. I actually have significant Access experience, but I haven't done it in...
8
by: swilson513 | last post by:
In Access97 I was able to have an advance filter on a form that had a Like statement so when you applied the filter EACH time it would asked for the criteria. In 2000 the same filter doesn't asked...
2
by: Greier Matthias | last post by:
Hi! I've got a sport-database for my students with name - class - teacher - year of birth - 60meter-runningtime - 100meter - longjump - ...(and some other disciplines) The whole program...
1
by: Netserver | last post by:
Hi in the display properties off the control panel, tab settings,advance button. Font size has two sizes, the default is small. when you create your form with this default size everything is fine...
5
by: A. Farber | last post by:
Hello, I call readv() and writev() in several spots of a program which I run under Linux, OpenBSD and Cygwin. Since it always the same way (check the return value; then check errno and retry if...
4
by: sarika | last post by:
Which group should i join for learning advance ajax plz help
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.