ddd-repositories Questions

1

I am learning DDD and have this basic question: It seems with factories, rich domain models, repositories the Create,Read,Update (of CRUD) are taken care of, but what about delete? There could be ...
Dufrene asked 1/8, 2012 at 9:15

1

I have a scenario where a given entity may be marked for soft delete or a hard delete based on some logic when a user requests delete. Approaching this problem from DDD paradigm, i see some issu...
Leek asked 25/7, 2012 at 6:5

3

Solved

I've been studying onion architecture for a couple of days. I understand that dependencies should always go toward the center and how to use dependency injection to accomplish this. But I have a co...

2

Solved

When comming accross concepts within a Domain Model where there exists something that has a name and sounds like an object but overlaps with the responsiblility of one of the 5 main DDD building bl...

4

Solved

I am struggling to understand how to best query a repository. The three factors that are throwing me through a loop right now are: Return type of data Columns to run query on Number of records t...

2

Solved

I'm trying to figure out how the Repository pattern works and how it can be implemented in a custom MVC pattern. As far as i understand it, the Repository is a layer which simply returns data from...
Heteromorphic asked 11/2, 2012 at 22:29

2

Solved

I am attempting to refactor my application from a repository per entity to a repository per aggregate root. A basic example would be I have an entity root of Cars. Cars have hire contracts. As far...

2

Solved

Is it ok for a Repository to return boolean values based on objects it (virtually) contains? For example: if (userRepository.checkCredentials(username, password)) { // ... Or is it a better ap...

2

Solved

I have an aggregate named Campaigns every with a root entity named campaign, this root entity has a list of attempts (entity) public class Attempts: IEntity<Attempts> { private int id;...
Karbala asked 7/7, 2011 at 22:27

2

Solved

I have the following domain model: public class Playlist { public long Id { get; set; } public string Title { get; set; } public virtual ICollection<Song> Songs { get; set; } } public cl...

1

Solved

I've been playing with RavenDB recently and there is something that is annoying me a little. I have an entity object with a series of value objects, e.g. class Foo { IList<Bar> Bars { ge...
Milton asked 26/5, 2011 at 14:44

1

Solved

I've read DDD Evans, and I' experimenting with an aggregate root repository design using C# and Entity Framework 4.1 + LINQ. However, I'm concerned about the actual queries that are being sent to ...
Tenner asked 18/5, 2011 at 15:23

1

Solved

I have an 'Interview' entity that has a one-to-one mapping with a 'FormSubmission' entity, the Interview entity is the dominant side so to speak, the mapping is: <class name="Interview"> &l...

2

Solved

None of the examples I have looked at for Repository Patterns include any kind of error handling. Why is this? Say for instance I have this: public virtual TItem Insert<TItem>(TItem item) wh...

4

Solved

I need to clarify something. Have Person Aggreagate , 2 VOs (Country, StateProvince). I want to load all country in my presentation layer (i am using mvc) Evan says you only use repository (IPer...
Lys asked 29/3, 2011 at 20:4

5

Solved

I have to rewrite an old application and I would like to start using the repository pattern for data access and also write as many tests as possible for the required functionalities. Can you...

3

Solved

What class in my project should responsible for keeping track of which Aggregate Roots have already been created so as not to create two instances for the same Entity. Should my repository keep a l...

2

Solved

If my Domain Model is not supposed to know/care about the Repository, then how does some behaviour like .UpdateOrder(...), that encapsulates a CRUD-Update, interface with the Repository? Through a ...

3

Solved

We're working on a new project (re-writing existing app), and I'm running into problems with my domain model / repository design. Here is a (simplified) version of two key portions in our domain m...
Convexoconvex asked 26/11, 2010 at 1:29

3

Solved

In the real world, Controllers can potentially need to use data from a variety of database tables and other data stores. For example: [Authorize] public class MembersController : Controller { I...

1

Solved

I would like to do some exercice and apply DDD to my Domain Model applied to Northwind database. Even if Northwind is an example I imagine that it was done to satisfy some " virtual business" requi...
Crowboot asked 4/3, 2010 at 17:28

2

Solved

I have a question regarding DDD and the repository pattern. Say I have a Customer repository for the Customer aggregate root. The Get & Find methods return the fully populated aggregate, whic...
Therapeutics asked 19/1, 2010 at 23:54

3

Solved

After reading Eric Evans' Domain driven Design I have a few questions. I searched but no where i could able to find satisfying answers. Please let me know if anyone of you have clear understanding ...
Phlox asked 25/9, 2009 at 3:9

1

Solved

I am looking to see what approaches people might have taken to detect changes in entities that are a part of their aggregates. I have something that works, but I am not crazy about it. Basically, m...
Wanettawanfried asked 14/9, 2009 at 14:3

4

Solved

In DDD one of the key concepts is Repository, which allows you to retrieve Entities (or Aggregate Roots) and then save them back after they are updated. Let assume that we need to perform some 'bu...
Downhearted asked 18/2, 2009 at 17:45

© 2022 - 2024 — McMap. All rights reserved.