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
0
votes
2 answers

Mapping a Domain Model to the database with EF Fluent API

Below is the Project code-first class mapped directly to the database through the Entity Framework 6 Fluent API: public class Project { public Project() {} public int ProjectId { get; set; } public string Name { get; set; } …
0
votes
3 answers

Domain model - modeling a template class and the instance class?

I'm writing a program where someone can set up an email (To, CC, Subject, Body, etc.). They can then set up various triggers that will cause an email to be sent using the set up they defined. How would that be modeled? Would I have an EmailTemplate…
richard
  • 12,263
  • 23
  • 95
  • 151
0
votes
3 answers

DDD: Modeling Has- a

I am trying to follow the DDD, and I have a doubt about modeling this example situation: I have an entity Employee: public class Employee{ public Int32 Id {get;set;} public String Name {get;set;} public Decimal Salary {get;set;} public…
Tiago B
  • 1,937
  • 14
  • 34
0
votes
1 answer

Domain model issue with objects with multiple properties. How should I structure it?

I am making a tiny game app in my free time, and I have just recently hit a wall. The idea is that there is a fixed grid of Boxes available and that many Jewels as well. Both boxes and jewels can come in different colors. As with color space, the…
ioreskovic
  • 5,531
  • 5
  • 39
  • 70
0
votes
1 answer

Managing Compound object and mapping properly their attributes using JPA

Again, i arrive at some cross road that make me struggle against the correct principles of object composition designs for a ("rich") domain model objects. Please note that the meaning of composition is the meaning that comes with UML modelling :…
Victor
  • 3,841
  • 2
  • 37
  • 63
0
votes
3 answers

Forget server-side form validation with a good domain model?

I am developing an MVC application with Zend Framework and jQuery. My Model consists of three layers: Service Layer, Mapper, Domain Model. To date I have been struggling with input validation - some happens on the client, some in the Zend Form, and…
DatsunBing
  • 8,684
  • 17
  • 87
  • 172
0
votes
2 answers

Drop-down list from Domain Model / Repository

I want to make it easy to create drop-down menus within my system that are populated from the database (for example, a list of user groups). I am generally following a domain-driven design approach for this system, including a slightly adapted…
Matt Browne
  • 12,169
  • 4
  • 59
  • 75
0
votes
1 answer

How to properly define DbContext derived class when using EF Code First with DDD methodology?

I am new to EF, Code First and DDD and still in the learning process, so let's say I have simple domain like this public class Customer { public string Name { get; set; } public string Address { get; set; } public List Orders {…
matori82
  • 3,669
  • 9
  • 42
  • 64
0
votes
1 answer

Generating instantiation code from in-memory model

Does anyone know a quick way to reverse-engineer an in-memory object graph in Java? What I need is a way to traverse an in-memory object graph and create Java instantiation/setter calls to re-create the original graph. That's needed as a tool for an…
Nick G.
  • 557
  • 9
  • 18
0
votes
1 answer

grails 2.2.2 service don't know domain model: "No signature of method"

I have a grails-plugin called "listadmin" there is a domain model "Liste": package listadmin class Liste { String internal_name String public_name Boolean edtiable = true Boolean visible = true static hasMany = [eintrage :…
Der_V
  • 177
  • 1
  • 16
0
votes
1 answer

Silverlight 5 Domain Model Event Handler being called incrementally

Ok ... next question. I am using Silverlight 5 C# 2012 and have gotten to a point where I could use a little help. I am using the Domain Model to call methods to return information and I discovered that if I hit the same button more than once, the…
Eric Olson
  • 93
  • 1
  • 12
0
votes
1 answer

asp.net pattern - domain model

I am reading professional asp.net design patterns by Scott Millet. And I am on page 68 - reading Domain Model. I really like the way Domain Model works. But I need simpler example to show me how it works. Do you know any resources I can read? or…
0
votes
2 answers

Anemic domain model from the aspect-oriented programming point of view. Yet anemic?

Let's say you've an anemic domain model (ADM): public class Employee { public Employee() { _roles = new List(); } private IList _roles; public Guid Id { get; set; } public string Name { get; set; } …
Matías Fidemraizer
  • 63,804
  • 18
  • 124
  • 206
0
votes
2 answers

Entity Framework populate only the database fields in domain model

I have a domain model that has a properties that don't exist in the database. For example ... public class DomainModel: IKeyedEntity { //Id for the table public int DomainModelID { get; set; } //Foreign key value public int FooID {…
Stefan Bossbaly
  • 6,682
  • 9
  • 53
  • 82
0
votes
1 answer

What do we call for these types of objects that used within Domain Model in DDD?

I have tried to find a solution to this naming problem, but I could not find a similar usage anywhere on the web. It could be either we have a design flow in the domain model, or we simply don't use the appropriate name for so called…
Spock
  • 7,009
  • 1
  • 41
  • 60
1 2 3
23
24