473,396 Members | 1,816 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,396 software developers and data experts.

OOP design

I've got to produce a console app that requests a dataset from a web service
in our personnel system, manipulates the data and then updates each record in
the Active directory.

Not being the most brilliant OOP programmer I'm having problems trying to
design suitable objects.

Would anyone like to suggest how they would design this type of app?

Thanks
Jul 20 '06 #1
3 1353
You haven't defined the requirements fully enough to make any
recommendations.

--
HTH,

Kevin Spencer
Microsoft MVP
Professional Chicken Salad Alchemist

What You Seek Is What You Get.
"John S" <js***@newsgroup.nospamwrote in message
news:33**********************************@microsof t.com...
I've got to produce a console app that requests a dataset from a web
service
in our personnel system, manipulates the data and then updates each record
in
the Active directory.

Not being the most brilliant OOP programmer I'm having problems trying to
design suitable objects.

Would anyone like to suggest how they would design this type of app?

Thanks

Jul 20 '06 #2
Hello John,

Thanks for posting here.

From your description, the application you're designing will have three
processing stages:

1. Retrieving data from remote server through webservice, and since you
mentioned that the return object is DataSet, the remote datasource is
relational database, correct?

2. Processing and maniuplating the returned data locally in the application.

3. Update the processed data into Active Directory.

Here are some of my general suggestions for the above three stages:

#1 Generally, for relational database table/records, we would consider
designing some custom classes to represent them in our program so that our
code just simply deal with relational data as normal class objects. This is
commonly called O-R mapping. .NET framework support creating typed Dataset
for conveniently accessing and manipulate relation database data which is
very like a O-R mapping object through it is not a pure one. So you can
consider return typed dataset from the remote datasource for the client
application to maipulate them with strong-typed objects.

#Working with a Typed DataSet
http://msdn2.microsoft.com/en-us/library/esbykkzb.aspx

#Implementing Data Transfer Object in .NET with a Typed DataSet
http://msdn.microsoft.com/library/en...typedDataSet.a
sp?frame=true

And as for the webservice call, since .net has provide proxy generator(the
VS IDE's add webreference or the wsdl.exe tool), it will help automatically
generate strong-typed webservice client proxy, we don't need to worry too
much about this.

#2 As for the local processing and manipulation, would you provide some
further info on this? I think here we should design some classes dedicated
for these data manipulating. And the design also rely on the classes we
used in #1, the processing class/interfaces would vary depend on how you
design the data access objects(use custom classes or typed dataset or
normal dataset ...)

#3 for the AD querying/updating, the .net framework has provided the
System.DirectoryServices namespace for ADSI programming, you can further
implement some custom helper classes which expose some specific interfaces
for your scenario. For example, you can create a certain class which
encapsulate all the AD updating operations as its member functions.

BTW, you can find some good articles and guidelines in the MSDN pattern &
practice center:

http://msdn.microsoft.com/practices/

All of these are quite general opinions, if you have any detailed cases or
problem, please feel free to post here and we can have some further
discussion on them.

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead

==================================================

Get notification to my posts through email? Please refer to

http://msdn.microsoft.com/subscripti...ult.aspx#notif
ications.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial

response from the community or a Microsoft Support Engineer within 1
business day is

acceptable. Please note that each follow up response may take approximately
2 business days

as the support professional working with you may need further investigation
to reach the

most efficient resolution. The offering is not appropriate for situations
that require

urgent, real-time or phone-based interactions or complex project analysis
and dump analysis

issues. Issues of this nature are best handled working with a dedicated
Microsoft Support

Engineer by contacting Microsoft Customer Support Services (CSS) at

http://msdn.microsoft.com/subscripti...t/default.aspx.

==================================================

This posting is provided "AS IS" with no warranties, and confers no rights.


Jul 21 '06 #3
Hello John,

How are you doing on this issue? Have you had a chance to have a look at my
last reply or have you got any further ideas on this? Please feel free to
post here if there is still anything we can help.

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead
This posting is provided "AS IS" with no warranties, and confers no rights.

Jul 25 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: adb | last post by:
I came up with a replication configuration that is basically the result of all the restrictions of replication as well as the restrictions of allowable software on work PC's and I was curious if...
3
by: zlst | last post by:
Many technological innovations rely upon User Interface Design to elevate their technical complexity to a usable product. Technology alone may not win user acceptance and subsequent marketability....
0
by: Edward Diener | last post by:
In Borland's VCL it was possible to divide a component into design time and run time DLLs. The design time DLL would only be necessary when the programmer was setting a component's properties or...
7
by: Shimon Sim | last post by:
I have a custom composite control I have following property
2
by: Paul Cheetham | last post by:
Hi, I have moved an application from VS2003 to VS2005, and I am now unable to view most of my forms in the designer. The majority of the forms in my project are derived from class PACForm,...
1
by: Nogusta123 | last post by:
Hi, I have had a lot of problems getting web pages, master pages and content pages to render in VS2005 design view the same as they would in Internet Explorer. I did a lot of looking on the...
0
by: YellowFin Announcements | last post by:
Introduction Usability and relevance have been identified as the major factors preventing mass adoption of Business Intelligence applications. What we have today are traditional BI tools that...
19
by: neelsmail | last post by:
Hi, I have been working on C++ for some time now, and I think I have a flair for design (which just might be only my imagination over- stretched.. :) ). So, I tried to find a design...
10
by: vital | last post by:
Hi, I am designing the middle tier of a project. It has 6 classes and microsoft application data access block. The six classes are DBServices, Logger, ProjectServices ... etc. and all these...
4
by: Ken Fine | last post by:
I've been living with a frustrating issue with VS.NET for some months now and I need to figure out what the problem is. Hopefully someone has run into the same issue and can suggest a fix. I...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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?
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.