Take the 2-minute tour ×
Programmers Stack Exchange is a question and answer site for professional programmers interested in conceptual questions about software development. It's 100% free, no registration required.

Suppose I create a domain object called UserAdministration, if i have a method called CreateUser how would i pass state to this method, would I create properties on the UserAdministration object and have a CreateUser method or would i pass all the info for CreateUser method in a poco?

Also how do I identify my domain objects?

share|improve this question
add comment

1 Answer

How would i pass state to this method

There are several ways, here are 3 of them:

1-Pass the values as parameters to public constuctor

2-Pass the values to a public method

3-Create public properties in the class, create an instance, then set each property and call the method without passing parameters

How do I identify my domain objects?

A domain object represents a persistent data store in your solution. If you application is about CRM, then you are bound to deal with domain objects such as parties (customers, companies, etc.), ContactAddress, TouchPoint, etc. All such objects should appear in your UML Class Diagram. A detailed discussion of this could be found in UML, OOA and Domain Driven Design books.

share|improve this answer
    
@rchilambi,Did this answer help you? –  Emmad Kareem Mar 3 '12 at 21:37
add comment

Your Answer

 
discard

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.