Programmers Stack Exchange is a question and answer site for professional programmers interested in conceptual questions about software development. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Say in a UML Sequence diagram, I am showing a call to the database using ADO.NET. Do I need to include the SqlConnection, SqlCommand, SqlDataReader object in the diagram? Is it just preference determined by the level of depth/detail?

share|improve this question
up vote 4 down vote accepted

In the end, UML is a Universal Modelling Language. Languages are intended for communication. Who is the target audience for your diagram? Would they find it useful to know about the framework classes?

Therein lies your answer. If it's useful, put it in; if it's not, leave it out.

share|improve this answer
I agree with this post. – UML_GURU Apr 13 '11 at 21:50
Agreed with this as well. My instinct says don't include the built-in classes, but this is very good advice. – Wayne M Apr 14 '11 at 12:47

It really depends. Are you trying to create an outline with this UML diagram or a detailed map? If it's only an outline, you need only include the name of the class if it holds some important significance on how the program works. Even then I would argue that it's better simply to leave it off for simplicity's sake.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.