Questions tagged as 'automapper'

1
answer

AutoMapper Relationship One to Many - Model to ViewModel (and vice versa)

MVC scenario, where Controller talks to Application that talks to Domain. I'm trying to do a one-to-many mapping with AutoMapper. This is my Model: public class Estado { public Guid EstadoId { get; set; } public string Nome { get...
asked by 29.01.2017 / 18:10
1
answer

DTO Assembler, how do you actually use it?

I'm reading about DTO and tbm viewmodel in ASP.NET and wanted to do something like this in JAVA. If I'm not mistaken, DTO is a way to traffic data between layers in a specific way without having to change domain entities. Well, in ASP we have...
asked by 18.11.2016 / 23:43
1
answer

Error deleting registration with Entity Framework when doing entity mapping

When I try to delete a record from the mapping of Mapper (Model to Domain) I get the following error as a result of E.F :    failed because another entity of the same type already has the same primary key value. But if I do a...
asked by 04.07.2018 / 20:29
0
answers

Doubt AngularJS - DDD - Graphics

Good evening guys. I am developing a finance control application with revenue, expenses, transfers between accounts, reports and graphics in angularjs + webapi + ddd + automapper + injection of dependencies to study new technologies, as I cur...
asked by 06.06.2018 / 03:52
0
answers

Problems returning an IQueryable list to convert it with Automapper

I have a function that returns me a list of people with their personal / legal relationships. I have a PersonViewModel that is already mapped in the Autommapper layer ... When I call the GetJoinAll () function it has to return an IQueryable of P...
asked by 10.04.2018 / 00:39
0
answers

Error with AutoMapper

I'm having trouble mapping child classes in automapper, which I do from viewModel to model. Has anyone ever had this kind of problem? thank you very much I'll post the classes public class ViewModelToDomainMappingProfile : Profile { public...
asked by 09.11.2016 / 01:37
0
answers

Error with Mapping and Fluent Api

I have now started the study in Asp.Net MVC with EntityFramework, I am taking some time to save the following case: public class Aluno { public int Codigo { get; set; } public string Nome { get; set; } public DateTime DataNasciment...
asked by 03.10.2016 / 23:19
2
answers

I can not initialize Automapper 6.2.2 Settings Asp.netcore 2.0

In my Application layer, I have the following classes: public class AutoMapperConfig { public static MapperConfiguration RegisterMappings() { return new MapperConfiguration(cfg => {...
asked by 14.01.2018 / 18:25