Questions tagged [domain-model]

A domain model is composed of the objects, behavior, relationships, and attributes that make up the industry that is the focus of development.

E.g. if you are in retail, you would model the "things" (classes) that are relevant, such as Sale, Product, and SalesTransaction. Read more here

359 questions
4
votes
1 answer

Implementing Paging and Sorting with Domain Driven Design

This is with respect to my solution of implementing Paging & Sorting in Domain Driven Design with intention of not to pollute the Domain models and repository contracts, Base class for REST Request public class AbstractQueryRequest { …
4
votes
1 answer

Proper Architecture: Adding Attributes to Domain Model in .NET

Background I like Jeffrey Palermo's Onion Architecture model (similar to Hexagonal Architecture) which prescribes that the Domain Model be at the 'center' and the concrete implementations of infrastructure, specifically Concrete Repositories be on…
Philip Pittle
  • 11,821
  • 8
  • 59
  • 123
4
votes
3 answers

Is Martin Fowler's POEAA implementation of Unit of Work an anti-pattern?

Well from the book POEAA, Martin Fowler introduced this idea of Unit of Work. It works very well if you want to have auto-commit system, in which your domain model uses Unit of work to label itself as new, dirty, removed or clean. Then you only need…
Lord Yggdrasill
  • 3,197
  • 4
  • 26
  • 42
4
votes
6 answers

Where to start when doing a Domain Model?

Let's say I've made a list of concepts I'll use to draw my Domain Model. Furthermore, I have a couple of Use Cases from which I did a couple of System Sequence Diagrams. When drawing the Domain Model, I never know where to start from: Designing the…
devoured elysium
  • 101,373
  • 131
  • 340
  • 557
4
votes
1 answer

Visualize JSON models as domain model

Is there a way to display a bunch of JSON objects, WITH relations, as a domain model? Models could be something like this: { "name": "Order", "status": { "type": "number", "null": false, "default": 1 } }, "relations":…
glesage
  • 955
  • 2
  • 16
  • 31
4
votes
2 answers

Should I put actors in the Domain-Model/Class-Diagram?

When designing both the domain-model and class-diagrams I am having some trouble understanding what to put in them. I'll give an example of what I mean: I am doing a vacations scheduler program, that has an Administrator and End-Users. The…
devoured elysium
  • 101,373
  • 131
  • 340
  • 557
4
votes
1 answer

Deferred Validation

The Whole Values (1) that quantify a domain model have been checked to ensure that they are recognizable values, may have been further edited for suitability by the domain model and have been Echoed Back (4) to the user. All of these checks…
MJK
  • 3,434
  • 3
  • 32
  • 55
4
votes
1 answer

Domain Model with partially loaded objects

Let's say I have an application which consists of both client and server. Client is using MVVM pattern (with WPF) and server is simply a WCF service which fetches some data from database and returns data as DTO-objects to client. In client,…
user544511
  • 759
  • 6
  • 15
4
votes
1 answer

Grails: Best approach to dealing with an existing database

I'm writing a Grails application that will be pulling data from an existing Oracle database. If I were designing this from scratch I could hold all the information in two or three domain models because logically that's how the data should be…
Harry Muscle
  • 2,247
  • 4
  • 38
  • 62
4
votes
1 answer

Domain models in UML?

I read about domain model and its importance and I have the following doubts : What kind of problems can one resolve with domain models? in other words,for each problem I should build a domain model? As far as I know, The domain models are…
Andrew
  • 713
  • 3
  • 10
  • 19
4
votes
2 answers

Declarative Domain Model possible (DDD)?

I'm looking for insight/ papers/ articles, etc. whether a fully declarative Domain Model (as per DDD) is possible. For example: Validation can be declarative (lot's of ORMs do this) business flow logic can be declarative: having a DSL for…
Geert-Jan
  • 18,623
  • 16
  • 75
  • 137
4
votes
2 answers

Mapping from Entity Framework to custom domain model classes?

I wonder how could I obtain an automatic mapping between entities generated by entity framework (.NET Framework 3.5 SP1) and custom domain model classes? I know I can create some data converters that translates the objects back and forth between the…
lmsasu
  • 7,459
  • 18
  • 79
  • 113
4
votes
2 answers

Repository pattern without domain object for retrieving scalar values

Recently, I struggled trying to figure out if some methods, functions in my architecture was at the good place; in the correct layer. I want to follow the repository pattern of Martin Fowler to decouple my service layer from the database. The…
3
votes
1 answer

Should Orchard CMS Content Types be used for an applications domain model?

I have been writing an application using ASP.Net MVC4, where the majority of the data has been stored in MongoDB. This has worked great for the majority of what I would consider the "meat" of my application, the functionality it was made for that…
Chris Pitman
  • 12,990
  • 3
  • 41
  • 56
3
votes
3 answers

Making changes to domain-model using code-first (ORM) while in production

While code-first is great for deployment and while in development I fail to see how you can push through changes made to your domain-model in a code-first way after going in production. What do I do with the data accumulated while we were in…
ndsc
  • 1,173
  • 2
  • 13
  • 22