May 2019
Intermediate to advanced
504 pages
11h 50m
English
The aforementioned static data elements—especially the data points that are attached to the main collections with an ID reference—would probably never change, and yet they would be carried over the wire together with the main data elements. In order to decrease the payload size, we can in fact dismiss these data objects on the DTO models and represent them only by ID. However, in such an implementation, we would need to find a way to resolve these ID references into real data elements.
For instance, let's take a look at the engine entity that we are transferring as part of a vehicle description:
public class Engine { [JsonProperty("displacement")] public string Displacement { get; set; } [JsonProperty("fuel")] public FuelType ...Read now
Unlock full access