Entity Parameter on Invoke not generating on client
I have a simple [Invoke] method that has a class as a wrapper, see below. The problem is the FirstOne property does not show up in the ComplexObject on the client-side.
I can work around this by making the FirstOne property a property of the Invoke method and it works fine.
What would cause this to not generate on t开发者_运维问答he client?
public class MyRequest
{
public ParentEntity FirstOne { get; set; }
public int SecondOne { get; set; }
}
[Invoke]
public void DoIt(MyRequest req)
{
// blah
}
When using an Invoke statement, you can only use simple types (int, double, float, etc.) Complex types are not allowed when using the Invoke command.
See Colin Blair response here
精彩评论