Questions tagged [object-object-mapping]

129 questions
1
vote
0 answers

Restkit nested object mapping failure

I've to parse a nested JSON object posted below. It am not getting any test objects back.What is it that I am doing incorrectly? {"tests":[{"type":"QA","list":[{"test_performed":{"id":11,"time":" 9:00 AM","tester":"Tester…
user667673
  • 171
  • 1
  • 5
1
vote
1 answer

Java Mapping objects to objects - Moo

I have a question about Moo (https://github.com/geoffreywiseman/Moo/) that I haven't been able to solve on my own. I have this class structure: class Middle{ private int id; private Upper upper; private List children; private…
0
votes
1 answer

RestKit -Problems with object mapping of "advanced data object"?

Im having a problem with the mapping of the: latest_update field in the JSON data. Recieving this JSON data from my webservice: {"Places":[ {"place_ID": "7cceedda-ed3a-11e0-a1a8-858e3974979a", "timestamp": "2011-10-02 23:24:42" },…
Thomas
  • 75
  • 7
0
votes
0 answers

Can MapsterMapper/Mapster map an Expression tree just like AutoMapper do?

MapsterMapper/Mapster 7.3.0 EFCore 7.0.5 asp.net core 7.0.0 I have two generic type in my BuzService class, one is TModel and other one is TEntity. TModel is a DTO class, TEntity is an entity class. I have a method in the service class public…
0
votes
0 answers

Can MapsterMapper/Mapster automatic updates DTO when entity changed?

MapsterMapper/Mapster MapsterMapper/Mapster 7.3.0 EFCore 7.0.5 asp.net core 7.0.0 Entity Class public class Setting { [Key] public Guid Id {get;set;} public string Name {get;set;} public string Value {get;set;} } Dto…
0
votes
1 answer

Use AutoMapper inside a class library project in ASP.NET Core Web API

I'm getting this error: AutoMapper.AutoMapperMappingException: 'Missing type map configuration or unsupported mapping.' in my project when trying to map an EF model to my DTO. Profiles and value resolvers are in my class library project. This is…
Ali.Rashidi
  • 1,284
  • 4
  • 22
  • 51
0
votes
1 answer

Class that one of his members is object

Lets say I have class called Connection. One of his members is object that is instance of another class, class VerificationCode. The class VerificationCode has 2 members: code and expiresAt. Should I keep the VerificationCode and associate it with…
0
votes
1 answer

Lightweight class-to-MySQL record mapping in C#?

I'm using VS 2008 and .NET 3.5 framework. I've already played a bit with XmlSerializer. I've added attributes in the business object classes like [System.Xml.Serialization.XmlRootAttribute()] and so forth, and it works well. It's a relatively thin…
John
  • 15,990
  • 10
  • 70
  • 110
0
votes
0 answers

Abp.io AutoMapper extension IgnoreFullAuditedObjectProperties() not working when mapping collection

Using the abp.io framework on their implementation of AutoMapper which is integrated with the framework I'm having some issues mapping collections. With abp.io our entities have various audited properties, creation, mofification times and records…
user1259167
  • 447
  • 5
  • 15
0
votes
1 answer

Map incoming JSON Object to typescript interface

Is there a way to map incoming JSON object to typescript interface? So, let me explain. I have tried using class-transformer, but it does not solve my problem. In javascript, I would have used object-mapper to transform from source to destination.…
yogsma
  • 10,142
  • 31
  • 97
  • 154
0
votes
2 answers

reactjs - get a subset of an nested array objects

I have a variable like this, which I am passing as an input into the react app. const options = [{"label": "Gryffindor", "value": "Gryffindor", "description": "Daring, strong nerve and chivalry.", "color": "#00ffa2"}, {"label": "Slytherin",…
0
votes
1 answer

How to specify automapper exception caused data?

I am reading the coordinate values from a file using 3rd tool, and tool casts data to a Point class collection. public class Point { public string Lon {get;set;} public string Lat {get;set;} public string Elevation {get;set;} } And I…
barteloma
  • 6,403
  • 14
  • 79
  • 173
0
votes
1 answer

Mapping a variety of JSON responses with the same top - level structure in Swift

I have a variety of JSON responses that I'm getting back from a server via Alamofire; two are included below: 1) { "json" : { "harkUpdate" : { "more" : [ { "unread-count" : { "last" : 1613507864973, …
narner
  • 2,908
  • 3
  • 26
  • 63
0
votes
2 answers

Do I have to loop through an IEnumerable return from Dapper even though I only return a single object?

I'm using Dapper to retrieve employee information when I select that employee from a list. Everything maps correctly, and then the rows are grouped according to employee.id. Just what I want. But Dapper returns an IEnumerable, which makes sense…
Joshua White
  • 59
  • 1
  • 7
0
votes
2 answers

Warning: Encountered two children with the same key, `[object Object]

dear friends hope you all doing well. I have built a simple web application by reactJs, and I got a lot of warnings, and I searched ad there is a lot of the same question, I couldn't any solution, please help if anyone knows. here are the…
user13699766
1 2 3
8 9