Questions tagged as 'ddd'

1
answer

Consume repository of entities directly from the application layer

I have a scenario that I need to fetch a list of Active Employees with Entity Framework and display them on the screen (I need to convert to DTOs before displaying - which I do by the Application layer). For a Domain-Driven Design (DDD) scena...
asked by 13.02.2017 / 00:57
1
answer

Does programming in English conflict with the construction of a ubiquitous language?

I've already found some arguments in favor of programming in English, instead of programming in Portuguese, and we already have a # wondering which would be the recommended way. I happened to think about it from the point of view of Domain Dr...
asked by 07.07.2016 / 06:05
2
answers

References daughters and service pattern

A heavily used pattern in DDD , is service pattern . My question is, where is the logic for references to "daughters"? For example, a use case, Pedido that has Produtos public class Pedido { public int Id {ge...
asked by 09.10.2015 / 01:07
2
answers

How to update all records of all tables that have FK from a table

I have the following tables: CREATE TABLE Contrato ( [Id [int] NOT NULL IDENTITY, [Nome] [varchar](150), [Ativo] [bit] PRIMARY KEY ([Id]) ) CREATE TABLE [dbo].[ItemContrato] ( [Id] [int] NOT NULL IDENTITY, [ContratoId] [int], [No...
asked by 25.08.2017 / 20:51
2
answers

Should the Domain layer depend on Infrastructure?

I'm reading the Evans book on DDD and I came across the following quote:    The Infra layer does not perform any action on the domain layer, because it is below it, because it is below it should not have specific knowledge about the domain it...
asked by 08.07.2015 / 02:43
1
answer

How to handle requirements that "mix" domain and interface?

Whenever I develop some software I try to leave the domain model without being influenced by issues relating to other layers of the application such as general technologies and interface issues. In fact, the domain model contains a code templ...
asked by 08.07.2016 / 04:35
1
answer

Automate DDD

Is there a faster way to create a structure in asp.net mvc using DDD (plugin or framework)? For example, whenever you create a new entity, you must create many files in several projects and still configure the automapper and ninject. Is there...
asked by 19.01.2016 / 18:44
2
answers

DDD return aggregate entity of an AR

I am with the following doubt that no post I researched answered me. And I've done a lot of research. I think it's a simple question, for being a common case. Imagine a blog posts system. In this case I have the Post Entity, which has the Com...
asked by 10.09.2015 / 16:36
1
answer

Modifications to the model and relational database

The requirements for developing a system in general change over time. Several approaches to software development such as agile methods and Domain-Driven Design even encourage an iterative approach in which we delve into the real needs of a syste...
asked by 15.02.2016 / 19:01
1
answer

AutoMapper Entities ViewModel

I have a scenario where my context returns a query for two User and CardCreditoUsuario entities, according to the following scenario below. During automapper action in my ViewModel, it is not mapping the entity CardCreditoUsuario for its prope...
asked by 01.12.2016 / 22:42