locked
ComplexType supported or not? RRS feed

  • Question

  • Hi,

    As announced ComplexType should now be supported in LightSwitch.

    I cannot get this to Work at all. I have installed VS 2013 Update 2 (and now als Update 3 RC), but it still complaints whenever I connect to an existing OData service with Complex Types in the model about these properties not being supported.

    This online readonly OData service can be used to reproduce the problem: http://services.odata.org/V3/OData/OData.svc/

    It has a complex type "Address" as part of the model. Supplier/Addess and PersonDetail/Address both referes to the ComplexType="Address" and both fails to generate during attaching to the data source.

    What am I missing?

    Regards

    Uffe

    Monday, July 14, 2014 12:22 PM

Answers

  • <Property Name="Address" Type="ODataDemo.Address"/>
    Notice that this property does not have "Nullable" attribute indicating that it accepts null.  Nullable complex data types are not supported in LightSwitch.
    Monday, July 14, 2014 3:41 PM
    Moderator

All replies

  • <Property Name="Address" Type="ODataDemo.Address"/>
    Notice that this property does not have "Nullable" attribute indicating that it accepts null.  Nullable complex data types are not supported in LightSwitch.
    Monday, July 14, 2014 3:41 PM
    Moderator
  • Thanks for the clarification. It explains what I am seing, and indeed with Nullable="false" in the model, the flattened properties turns up in LightSwitch.

    Any plans to support nullable ComplexTyped properties in the future or is the decision a direct consequence of the "flattening" approach?

    Uffe

    Monday, July 14, 2014 4:23 PM