Copy As XML
As we saw in the previous post, CodeFluent Entities models are XML based: you can either design your model by drawing shapes on a canvas, or by declaring your elements in XML; both views are synchronized to one-another and the result will be the same.
Furthermore, using the surface view, you can copy shapes on the surface but you can also copy them “as XML” so you can paste and edit them in the XML directly.
Clicking “Copy As Xml” on the shape above will allow you to then paste the following XML:
<cf:entity name="Order" namespace="MyApp" xmlns:cf="http://www.softfluent.com/codefluent/2005/1">
<cf:property name="Id" key="true" />
<cf:property name="Price" typeName="currency" />
<cf:property name="Tag" />
<cf:property name="LineItems" typeName="OrderLineItemsCollection" />