Most voted "ddd" questions
Domain-Driven Design (DDD) is a software development approach in which design is domain-driven, i.e., by the area of knowledge to which the software applies.
Learn more…122 questions
Sort by count of
-
0
votes1
answer142
viewsC# Entity Dbset with DDD?
I have an app C# MVC with DDD and in the repository I’m making the call like this: return DbSet.Include(i => i.Cliente).FirstOrDefault(a => a.ProcessoId == processoId); DbSet-> is in the…
-
0
votes1
answer51
viewsSavechanges() method returns the added record id
I have in my Repositorygenerico the methods : public virtual async Task Adicionar(TEntity entity) { DbSet.Add(entity); await SaveChanges(); } public async Task<int> SaveChanges() { return…
-
0
votes1
answer80
viewsError in separating responsibilities
On Node, I created the following template to represent my user: "use strict"; var Sequelize = require('sequelize'); module.exports = function() { return sequelize.define('user', { ID_USER: { type:…
-
0
votes1
answer665
viewsAsp.net c# DDD - problem when passing data from Entity to Viewmodel
I am developing an ASP.NET MVC project, with DDD structure and using Simple Injector. I can perform BD persistence normally, however, when retrieving information and displaying it in a list, it…
-
0
votes1
answer77
viewsOauth with Dependency Injection
Hello, I’m starting my studies with Oauth, and right away I came across a problem. I created the famous 'Startup' class, and in it I call my predecessor as follows: public partial class Startup {…
-
0
votes1
answer122
viewsError while Updating using Entityframework Core
I have a layered project using DDD and am having trouble updating a record of my Personal class. public Task Handle(UpdatePessoaSituacaoCommand message, CancellationToken cancellationToken) { if…
-
0
votes1
answer192
viewsProblems with Migration
I’m developing an application using DDD architecture. In my Infra layer, I have my data models, all based on Code First. I’m trying to use the Mysql as database. I have installed everything that was…
-
0
votes1
answer126
viewsHow to convert from List<> to Ilist<> using Automapper?
I need to convert a List to Ilist with automapper knowing that both are in different classes and one of them has a constructor. Is that possible? I’m using the Automapper 6.2.2. public class Pessoa…
-
0
votes1
answer72
viewsIn which (is) layer(s) of a DDD project should I implement a Import/Export text files and reports feature
I have a C# project using the DDD + EF Core standard, based on a very good Eduardo Pires project: insert link description here I need to implement two resources: Import/Export (TXT, CSV, DOC,…
-
0
votes1
answer104
viewsEntity Framework Mapping - Area Code
I’m starting to work on a DDD project. I happen to be having a lot of doubts, and as much as I research, it gets more and more confused. I created this classe: public class Teste { public int Id {…
-
0
votes1
answer188
viewsHow to implement a text file export/import layer in DDD and how it will relate to the other layers
I’m basing myself on an Eduardo Pires project Here and I have some questions about implementing a unique layer for importing and exporting database information in csv, txt, xls, among others. For…
-
0
votes1
answer113
viewsMVC DDD Project
I’m creating an application, using the DDD standard, so in my Presentation layer, I create viewModel, and in the controller I use the Mapper.Map<Entidade, EntidadeViewModel> . i would like to…
-
0
votes1
answer24
viewsMapper.Map Addressmodel.Citysmodel Endereco.City
I have the class Addressee public class Endereco { public virtual Cidade Cidade { get; set; } public int CidadeId { get; set; } } And I got the Viewmodel Of That Class: public class…
-
0
votes1
answer116
viewsHow to find the user logged in to the Infra layer? (Using DDD with C# MVC EF)
I’m developing a feature for storing the history of screen record modifications. Example: I have a register of people, in this register of people, at each action performed (Insert, Edit, Delete) I…
-
0
votes0
answers162
viewsThe INSERT statement conflicted with the FOREIGN KEY constraint "Fk_dbo.Counter_dbo.Addresse_addressacoid"
I have two problems. I have the entity Accountant, Address and City. Every time I register a new one accountant, I have a dropdowlist who carries the cities so I can choose, the problem is that…
-
0
votes1
answer32
viewsHow to avoid using Service Locator in my Unit Of Work with Delimited Contexts and Mediatr?
Hello, I am starting studies on Ddds and delimited contexts and would like to avoid the use of Service Locator to access my repositories through the Unit of Work. I am currently using Mediatr to…
-
0
votes1
answer34
viewsHow to pass parameters to my domain class methods
Following the Patterns defined in the DDD I have my non-anemic domain class with data and behaviors and one of them is my aggregator, so far everything ok. My question is when I have a lot of data…
dddasked 4 years, 2 months ago Vinícius Dias Saraiva 11 -
0
votes0
answers11
viewsDoubt regarding the use of Aggregates in Area Code
I am hurting the principles of DDD and concept of Aggregates if using one agraregate within another as the scenario below? Context of a small e-commerce. Aggregate - Store public class Store {…
dddasked 3 years, 3 months ago Uitan Maciel 193 -
-1
votes1
answer934
viewsASP.NET MVC vs Angularjs with WEBAPI
In a web project (type a "small" ERP, rs) where some companies would manage their branches and there could be several connected users, which would be better in terms of performance and performance…
-
-1
votes2
answers596
viewsI cannot initialize Automapper Settings 6.2.2 Asp.netcore 2.0
In my Application layer, I have the following classes: public class AutoMapperConfig { public static MapperConfiguration RegisterMappings() { return new MapperConfiguration(cfg => {…
-
-1
votes1
answer144
viewsPrivate unit attribute test of a class / C#
I’m trying to create a unit test to ensure that an attribute of an X class is actually changed. But to compare it at the end of my test, something like: Assert.Equal(_sampleClass.Email, mockEmail);…
-
-1
votes0
answers5
viewsWhen updating a Migration, an error appears stating that it is not possible to create an object at design time
I’m testing a DDD concept project called Equinox at this address: Equinox The first thing I did was to update the Migration (Update-Database) of the Equinox.Infra.Dat layer and it worked correctly:…