Share Link
Copied to clipboard
Embed on Your Page
Copied to clipboard
We Stand with Ukraine
stackoverflow write a class with editable properties that becomes read-only after the method is called by Zohar Peled
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
}
Last Run: 4:39:17 am
Compile: 0.054s
Execute: 0.33s
Memory: 27.01Mb
CPU: 0.384s