Search the web
Sign In
New User? Sign Up
domaindrivendesign · Domain-Driven Design
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Want your group to be featured on the Yahoo! Groups website? Add a group photo to Flickr.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
Messages 13352 - 13382 of 16048   Oldest  |  < Older  |  Newer >  |  Newest
Messages: Simplify | Expand   (Group by Topic) Author Sort by Date ^
13352
I use the rep not only to encapsulate the mapping to the database but also to other systems in complex environments such as yours. Nuno...
Nuno Lopes
nbplopes
Offline Send Email
Jun 1, 2009
7:46 am
13353
Thanks for the reply. Do you have a link to the Tasks extension from JP Boodhoo so I can look over the source code. I am familiar with JP. Do you have a link...
Justin Daubenmire
JDaubenm
Offline Send Email
Jun 1, 2009
8:35 am
13354
Hello Justin, Here is a link to the relevant blog entry: http://blog.jpboodhoo.com/CommentView,guid,744e085e-efe8-4b63-b6b8-46d53b61e757.aspx For the very...
Eben Roux
eben_roux
Offline Send Email
Jun 1, 2009
8:42 am
13355
Thank you. I've also emailed you off list. Regards, Justin ... From: "Eben Roux" <eben@...> To: <domaindrivendesign@yahoogroups.com> Sent: Monday, June...
Justin Daubenmire
JDaubenm
Offline Send Email
Jun 1, 2009
9:05 am
13357
All, I have the following layers in my project: App.UI App.Presentation App.Services App.Domain.Model App.Domain.Repositories App.Infrastructure.DataAccess I...
Justin Daubenmire
JDaubenm
Offline Send Email
Jun 2, 2009
3:16 pm
13358
... I don't see why not. Personally I would prefer to have some services in a seperate namespace in the Domain assembly, though. My domain contains only model...
asbjorn.hoegh
Offline Send Email
Jun 2, 2009
4:41 pm
13359
... From: "asbjorn.hoegh" <ahoegh@...> You should only have an address repository if you're address is an aggregate root, i.e. makes sense outside the...
Justin Daubenmire
JDaubenm
Offline Send Email
Jun 2, 2009
8:28 pm
13360
All, Is the repository considered part of the domain or part of the infrastructure? I am reading the book .NET Domain-Driven Design with C# and the author has...
Justin Daubenmire
JDaubenm
Offline Send Email
Jun 2, 2009
9:49 pm
13361
I typically define the repository interfaces in the domain model. Their implementation would be in the infrastructure layer. From:...
Jeff Lowe
jefflowe7
Offline Send Email
Jun 2, 2009
9:54 pm
13362
The interface for the repository is part of the domain, but the actual implementation depends on the storage type (database, file...) used so that is tied to...
Jesper De Temmerman
jesper.detem...
Offline Send Email
Jun 2, 2009
9:56 pm
13363
... From: Jesper De Temmerman A RepositoryFactory handles retrieval of the correct implementation of the repository interface (by hand or with an IoC framework...
Justin Daubenmire
JDaubenm
Offline Send Email
Jun 2, 2009
10:23 pm
13364
... From: Jeff Lowe I typically define the repository interfaces in the domain model. Their implementation would be in the infrastructure layer. ... Thanks...
Justin Daubenmire
JDaubenm
Offline Send Email
Jun 2, 2009
10:30 pm
13365
public interface ICustomerRepository { Customer GetCustomerWithId(int id); ... } A repositoryfactory could then look like public class RepositoryFactory { ...
Jesper De Temmerman
jesper.detem...
Offline Send Email
Jun 2, 2009
10:35 pm
13366
... From: Jesper De Temmerman Usually, my structure is somewhat like: MyProject.Model - RepositoryFactory MyProject.Model.Customers - CustomerEntity -...
Justin Daubenmire
JDaubenm
Offline Send Email
Jun 2, 2009
11:09 pm
13367
... From: Jesper De Temmerman You should not have your domain objects call the repository. Instead, use a service. For example: public class CustomerService { ...
Justin Daubenmire
JDaubenm
Offline Send Email
Jun 3, 2009
5:58 am
13368
A repository should only exist for aggregate roots. If you want to persist changes to a customer address, you have to go through the customer (the aggregate...
Jesper De Temmerman
jesper.detem...
Offline Send Email
Jun 3, 2009
6:57 am
13369
... From: Jesper De Temmerman A repository should only exist for aggregate roots. If you want to persist changes to a customer address, you have to go through...
Justin Daubenmire
JDaubenm
Offline Send Email
Jun 3, 2009
7:12 am
13370
You do pretty much anything to help persist or retrieve data inside the repositories, and in small projects the easiest way to do this is to write your...
Jesper De Temmerman
jesper.detem...
Offline Send Email
Jun 3, 2009
7:31 am
13371
... From: Jesper De Temmerman You do pretty much anything to help persist or retrieve data inside the repositories, and in small projects the easiest way to do...
Justin Daubenmire
JDaubenm
Offline Send Email
Jun 3, 2009
7:43 am
13372
... From: Jesper De Temmerman As for your other question, I prefer to keep the service class with the domain object and repository interface, it makes sense to...
Justin Daubenmire
JDaubenm
Offline Send Email
Jun 3, 2009
7:57 am
13373
Hello Justin, It is the responsibility of the PersonRepository to handle the Person *Aggregate Root*. So if the Address is an aggregate root then the...
Eben Roux
eben_roux
Offline Send Email
Jun 3, 2009
9:26 am
13374
... the >RepositoryFactory, I'd need to set a circular dependency by adding a reference to >the Infrastructure.Repositories dll as it holds the...
Jesper De Temmerman
jesper.detem...
Offline Send Email
Jun 3, 2009
11:53 am
13375
Hey Justin, The repository interfaces are defined in the domain. However, if one goes for a CQS idea as some suggest on the forum (you know who you are) where...
Eben Roux
eben_roux
Offline Send Email
Jun 3, 2009
6:34 pm
13376
... It could be, but you could also put it in your Domain. That's what I do. I have services for all my complicated repositories in a namespace in my domain. ...
asbjorn.hoegh
Offline Send Email
Jun 3, 2009
7:10 pm
13377
Hi Justin, ... You could change this a little, to "The single responsibility of the CustomerRepository is to process Customer *aggregate* data", since the...
Johanna Belanger
rogutekk21
Offline Send Email
Jun 3, 2009
7:15 pm
13378
Hello Justin, OK, let me try this again... my last post (or two) went missing! Yes the Repository Interfaces are in the domain (the old dependency inversion). ...
Eben Roux
eben_roux
Offline Send Email
Jun 3, 2009
8:20 pm
13379
I prefer not to have any layers above the service layer that do not facilitate going to the UI. It is okay to turn DO's from services into DTO's to send over...
Jesper De Temmerman
jesper.detem...
Offline Send Email
Jun 3, 2009
9:08 pm
13380
... From: "Eben Roux" <eben@...> However, should one follow a CQS approach where there is only a single fetch for the aggregate root on the repository,...
Justin Daubenmire
JDaubenm
Offline Send Email
Jun 3, 2009
11:07 pm
13381
... From: "asbjorn.hoegh" <ahoegh@...> Imagine the following namespaces in each assembly: App.Infrastructure.Repositories App.Infrastructure.Factories ...
Justin Daubenmire
JDaubenm
Offline Send Email
Jun 3, 2009
11:10 pm
13382
... From: "asbjorn.hoegh" <ahoegh@...> It could be, but you could also put it in your Domain. That's what I do. I have services for all my complicated...
Justin Daubenmire
JDaubenm
Offline Send Email
Jun 3, 2009
11:41 pm
Messages 13352 - 13382 of 16048   Oldest  |  < Older  |  Newer >  |  Newest
Advanced
Add to My Yahoo!      XML What's This?

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help