Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace PocoBuilder to support overflow #2953

Merged
merged 17 commits into from
Nov 20, 2024

Conversation

ewoutkramer
Copy link
Member

@ewoutkramer ewoutkramer commented Oct 25, 2024

Wrote a replacement for PocoBuilder (for now, called PocoBuilderNew, they are internal classes anyway) that implements the new overflow and uses the Dynamic datatype classes for unknown types.

  • I have also replaced the ToPoco() extension methods to use the new builder
  • I have patched the old builder to eventually call the new builder.
  • Consequently I was able to throw away all the old ComplexTypeReader stuff.

Fixes #2947 .

Breaking changes

  • The DefaultModelFactory has been removed. It had not been in use for years, except by our own tests. With the cleanup of the PocoBuilder (ITypedElement->POCO) infrastructure, we decided to remove this class.

@Kasdejong Kasdejong marked this pull request as ready for review November 13, 2024 14:48
src/Hl7.Fhir.Base/ElementModel/PocoBuilderNew.cs Outdated Show resolved Hide resolved
src/Hl7.Fhir.Base/ElementModel/PocoBuilderNew.cs Outdated Show resolved Hide resolved
src/Hl7.Fhir.Base/Model/Base.cs Outdated Show resolved Hide resolved
Base automatically changed from 6.0/parse-elements-for-xml-parsers to develop-6.0 November 13, 2024 14:54
@ewoutkramer ewoutkramer changed the title First draft of a ITypedElement->POCO solution Replace PocoBuilder to support overflow Nov 18, 2024
@ewoutkramer ewoutkramer merged commit 8db1e68 into develop-6.0 Nov 20, 2024
16 checks passed
@ewoutkramer ewoutkramer deleted the 6.0/2947-adapt-pocobuilder-to-use-overflow branch November 20, 2024 18:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants