Thisis getting architecturally smelly. The way I see the logical layering is as follows: * At the very bottom there's your resources, like the database,...
Of course yes, so something like this would be more ideal:~ ' Application Layer Public Shared Function getCustomer(ByVal CustomerID As Long) As Model.Customer ...
There you go. That's indeed a far better separation of concerns. One last thing: I would expect the getCustomer on the application layer to actually grab the...
... Hang on a second. What I meant was you have an infrastructure service that is responsible for caching, say, DataCacheService, and the app layer is...
Yes all my CustomerService in the Domain layer is doing is simply calling the Customer Repository FindByID method. So I could change the Application Layer...
Hello, do you allow that aggregates / entities get temporarily in an invalid state? If you have an entity which has several public methods that modify the ...
I strive to never allow items to enter an invalid state. The reason for this is that as soon as an object can be in an invalid state, anytime you pass the...
Hello, I started to design my Customer entity as below so that it would Lazy Load the customers list of Addresses when required: Public Property AddressBook()...
Thanks zampano3000, I think this is an important point. So if these stateless, domain services are part of the domain, then it seems reasonble to allow the...
Hi Eric et 3D Gurus, We are attempting J to use Domain Driven Design for our banking application, my module mainly pertains to loans. I would be extremely...
Personally I would do something like use a prefetch plan that your code could give to the repository that would specify how you wanted the object filled in. ...
Hi Eric et 3D Gurus, We are attempting ļ to use Domain Driven Design for our banking application, my module mainly pertains to loans. I would be extremely...
Thanks zampano3000, I think this is an important point. So if these stateless, domain services are part of the domain, then it seems reasonble to allow the...
Hi all. This is my first post, so please be lenient;) I have red somewhere that there are catalogs of domain models - something like catalogs of design...
... "the state of an application task in progress" - just a temporary storage area that allows the user to incrementally build up the contents of their order...
Do you also apply this rule when it comes to defining constructors Greg? Having only recently started applying TDD and DDD, I've struggled with tension between...
This may be obvious, but... If repositories and domain objects are in the same .NET assembly, and you want to prevent non-domain classes from modifying the ID,...
... objects that ... been able ... Could you store some valid customers in your database and just load them in your tests? Another approach would be to...
Paul ... I use fluent interfaces to ease the pain of testing. In particular I use the FluentBuilder pattern. Here is an example for you (it is being used for...
... An object which is unable to reach the database (example: an object which is transfered to the client). I would go for the first approach if my objects can...
I don't know if I would call them "Domain Models" but you may want to google Archetype Patterns which can be extremely useful for you. Cheers, Greg ... -- It...
... Besides the Analysis Patterns that was already mentioned I also have the following on my bookshelf: - Object Models Strategies, Patterns and Applications ...