Advertisement

04.01.2008 at 03:58AM PDT, ID: 23285292
[x]
Attachment Details

class in oops development problem.

Asked by sitg in Software/Systems Design, C# Programming Language

Tags: c# and oops

hi,

i am designing a  3-tier-arch system in c#.

i have a complex datatype  refer the code:

now when user select the info from the UI. i want to insert the corresponding data in to a relation db.

i am planning to use a Another class  PersonService.
having methods to delete and add the person in to db.

and another datamapper that will actually execute the queries.

can anybody tell me how to design these two classes. PersonService and dataMapper.
Thanks

Start Free Trial
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
class person
{
int id
Contact contactInfo;
Billing billingDetails;
Login loginInfo.
}
class Contact
{
 int id;
 string address,
 string city,
 string state,
 string country,
}
class Billing
{
string BillingName,
string BankName,
string BankAddress
}
 
 
}
 
 
}
[+][-]04.01.2008 at 04:30AM PDT, ID: 21252834

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Software/Systems Design, C# Programming Language
Tags: c# and oops
Sign Up Now!
Solution Provided By: prakash_prk
Participating Experts: 2
Solution Grade: C
 
 
[+][-]04.01.2008 at 04:39AM PDT, ID: 21252879

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]04.01.2008 at 05:20AM PDT, ID: 21253142

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]04.01.2008 at 11:45PM PDT, ID: 21260604

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628