Hi,
We are currently finishing an architecture plan for a new software application we are developing next year in ASP.NET MVC / C#.
We are planning to construct the application following Domain-Driven design patterns and techniques and i'm wondering if anyone has any advice / views on an aspect of the proposed system.
One of the busin...
In the consumer code? (like a controller)
In repositories?
In services?
...
In the model I currently have an interface as such:
public interface IAmAnAssessment
{
int AssessmentId { get; set; }
string UserName { get; set; }
string DefectCode { get; set; }
string AssociateSeverity { get; set; }
string ShareholderSeverity { get; set; }
string CustomerSeverity { get; set; }
string RegulatorySeverity { get; ...
I'm curious if anyone has applied workflow foundation to a DDD project and if so what the pitfalls/gotchas were.
I'm looking at a extremely complex state processes that looks like WF would be a good fit for, but am trying to determine how to isolate the workflows from manipulating the state of my domain model. It was suggested to me to ...
I'm building a REST API that exposes data as XML. I've got a whole bunch of domain classes in my domain layer that are intended for consumption by both the service layer behind the API, and the client API that we will be providing to customers. (Customers do have the option of interacting directly with the REST API, but the client API si...
I am just at the brink of going "Ah HA!" when it comes to coding Domain Driven Design. The question is How and where to define a MVC ActionMethod parameter class that involves an entity, a value object, and a few extra fields? The entity and value object classes are defined in my repository.
Do I:
Create a custom class in the reposi...
I'm familiar with the standard repository, which has an interface resembling:
public interface IRepository<T>
{
IEnumerable<T> All();
T GetByID(int id);
//etc...
}
My problem involves attempting to implement this pattern within Silverlight which restricts remote data access to async calls (which ...
One of the basic tenets of CQRS, as I understand it, is that commands should be behaviour-centric, and have a value in the business or the UL, and not data-centric, ie., CRUD. Instead of focusing on updating a customer, we have commands like CustomerHasMoved. What if you have CRUD screens which are there to correct certain data. For exam...
If a service uses repositories to persist data, shouldn't it be in a repository?
...
I'm new to DDD so please forgive me if I'm not using the terms correctly.
I am Using C# MS/SQL and NHibernate.
I have a class call Payment and this payment has a PaymentCurrency each of these is an entity in the database.
OK. In my Domain Model I want to be able to create Payment as Either
Payment p = new Payment( 100 ) // automati...
I recently realized that I'm creating my n-tier applications using the Anemic Model, Which many would argue is not the proper OO way of doing things (and that it is actually an anti pattern).
So I'm now trying to apply the Domain-Driven Design instead.
I'm used to using the objectdatasource to bind controls, such as the grid view, to m...
This may be a basic question but I am pretty new to DDD.
I have an domain object that we'll call Adjustment which can be processed in bulk from the UI. Before we process the Adjustments, we need to validate the date those adjustments will be applied. My problem is with the location of that IsValidDate() method in my domain object.
Shou...
Are there any best practices for syncing hierarchical domain objects between client with modular structure (WPF,PRISM,MVVM) and server(WCF service and NHibernate for persistence in DB)?
Already have DTO objects for transport and separate module for server requests with callback management infrastructure.
Thanks in advance=)
Alexey ...
The layering scheme for DDD suggests that the layers should be;
Presentation/Application/Domain/Infrastructure
The diagram presented in Evans book shows the Presentation accessing the infrastructure layer. Is my interpretation of this diagram correct in that any of the upper layers can be allowed the access any of the lower layers??
...
We're developing a DDD based system. For a particular module (the publisher) in that system, we will receive data from other objects and perform transformations on them, then write out data files.
The DDD design being developed has many custom collection classes for data...all of these objects simply contain rows of data, but they have...
In the project there are two data sources: one is project's own database, another is (semi-)legacy web service. The problem is that admin part has to keep them in sync and manage both so that user doesn't have to know they're separate (or, do know, but they do not care).
Here's an example: there's list of languages. Both apps - project ...
context:
I have an entity Book. A book can have one or more Descriptions. Descriptions are value objects.
problem:
A description can be more specific than another description. Eg if a description contains the content of the book and how the cover looks it is more specific than a description that only discusses how the cover looks. I don...
Our current O/RM tool does not really allow for rich domain models, so we are forced to utilize anemic (DTO) entities everywhere. This has worked fine, but I continue to struggle with where to put basic object-based business logic and calculated fields.
Current layers:
Presentation
Service
Repository
Data/Entity
Our repository la...
I am getting confused between domain/application logic and User Interface logic. To illustrate what I am trying to nail down, I will describe an imaginary program below for illustration purposes:
(1)
Imagine a small application with a set of 3 cascading drop-downs. As you select one dropdown it triggers a jQuery Ajax GET which ends u...
I've got this question about form validation and business validation.
I see a lot of frameworks that use some sort of form validation library. You submit some values and the library validates the values from the form. If not ok it will show some errors on you screen. If all goes to plan the values will be set into domain objects. Here th...