iTwin / imodel-native

Apache License 2.0
20 stars 12 forks source link

Make ECDb and ECObjects more resilient to handle schema evolutions #845

Closed RohitPtnkr1996 closed 4 days ago

RohitPtnkr1996 commented 1 month ago

This PR contains only schema related changes to ECDb and ECObjects to make them more flexible when handling schemas that have unknowns possibly used with newer versions of ECDb.

A schema with a greater ECXml version than the one currently supported by ECDb can be deserialized, but it cannot be imported into the Db.

If a schema containing newer unknowns already exists in the Db opened by ECDb, the schema should be allowed to load. However any classes or properties that contain unknowns will be skipped over and not be loaded.

This schema with unknowns cannot be then serialized.