Share Link
Copied to clipboard
Embed on Your Page
Copied to clipboard
We Stand with Ukraine
https://stackoverflow.com/questions/76276372/json-deserialize-in-one-data-as-array-and-in-one-as-json-object-coming-tricky-no by dbc_MinLength
mapper.ConfigurationProvider.AssertConfigurationIsValid();

-- Create a domain model --
{
  "Id": 1,
  "Parent": {
    "Id": 2,
    "TypeId": 100
  },
  "Attempt": 3
}

-- Mapping from domain model to dbo --
{
  "ChildId": 1,
  "Parent": {
    "ParentId": 2,
    "TypeId": 100
  },
  "RetryNumber": 3
}

-- Mapping from dbo back to domain model --
{
  "Id": 1,
  "Parent": {
    "Id": 2,
    "TypeId": 100
  },
  "Attempt": 3
}
Cached Result
Last Run: 5:37:03 pm
Compile: 0.018s
Execute: 0.31s
Memory: 28.25Mb
CPU: 0.328s