Azure Mobile Services Failed to retrieve [ComplexType] from .net backend

With current Azure Mobile Services on the .NET Backend, there is a problem when you use the [ComplexType] property on an EntityData object.

eg:

public class TodoItem : EntityData
{
    public string Text { get; set; }

    public bool Complete { get; set; }

    public ExampleComplexType Example { get; set; }
}

[ComplexType]
public class ExampleComplexType
{
    public string X { get; set; }
}

      

use this with the sample TodoItemController and the database will be created just fine and the data can be inserted / updated / etc. However JSON returned from GetAllTodoItems () refuses to return an example.

Any thoughts?

+3


source to share





All Articles