开发者

Entity Parameter on Invoke not generating on client

开发者 https://www.devze.com 2023-04-02 02:10 出处:网络
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 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

0

精彩评论

暂无评论...
验证码 换一张
取 消