Comments (3)
Hi,
the problem is a little bit that it is nowhere documented how EMF expects the type information. To be fair, the usage in NMF neither is, but NMF is not (yet?) an industry standard.
I have the gut feeling that changing the output manually to the following will do:
...
<stepParameter parameter="program:PrimitiveValue Commands.program#number">
<value xsi:type="program:Value" value="19" type="DataTypes.program#Integer" />
</stepParameter>
...
I experienced this also in a previous case study. If that works for you, I can change the serialization behavior. By the way, the next version will also be available as .NET 4.5 library, at least for most of the runtime libraries (just shout, if there is a library missing that you require).
Georg
from nmf.
Hello Georg.
Thank you for the fast answer. I've tested your proposal and it works great. I can load it in EMF without any error and there is no data loss. I proved this by loading an EMF generated XML file to NMF, saving the content with NMF, updating the NMF XML file with your proposed solution, loading it back to EMF and saving the content again. Both EMF XML files had identical content and structure, except for a change of the order of two entries that does not change the meaning. Please add this to your next release. If you need someone who tests it I could do it with my current project.
Best regards,
Herbie
from nmf.
Hello Georg.
I saw that the new version 2.0.116 now writes the type information as you suggested. I have tested it against EMF and it loads the output without any data loss. EMF behaves a little bit strange with its type information. Sometimes it adds it explicit sometimes it is implicit, but your solution works now.
from nmf.
Related Issues (20)
- enum values differ between model and serialization HOT 5
- GC allocations accessing INotifyEnumerable HOT 4
- il2cpp compability for unity3d engine HOT 5
- Ecore2Code does not handle multiple namespaces HOT 5
- MetaRepository can't resolve multiple namespaces with same interface HOT 3
- Code generates incorrectly for models with elements named the same as the class HOT 1
- Generated static Retrieve methods need namespace to qualify ClassInstance reference HOT 5
- Support .NET Standard? HOT 4
- Serialization: Boolean TypeConverter doesn't conform to XML standard HOT 3
- Issue loading model created in EMF HOT 4
- Running Ecore2Code on .NET core HOT 7
- Troubles loading EMF instances of an Ecore model HOT 2
- Using NMF metamodels in Unity HOT 4
- "Data at root level is invalid. Line 1, position 1." HOT 1
- Ecore2Code: Generated reference models have incorrect ModelRepresentationClassAttribute HOT 1
- Support for Extrinsic XMI IDs HOT 12
- API question: how to find all usages of an object? HOT 2
- Some names in .ecore file can cause compilation errors HOT 2
- Problem following tutorial with NMF version 2.0.176 HOT 6
- Wrong deserialization of multivalued reference properties HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nmf.