ObjectFactory Create method does not support multiple parameters. #1703
-
Hello, In this issue MarimerLLC/cslaforum#817 about creating command objects requiring a My calling test code is:
And the
Thank you. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
The object factory model is unchanged from earlier versions of CSLA - I've implemented the new capabilities only for the encapsulated models so far. |
Beta Was this translation helpful? Give feedback.
-
I had a similar experience recently. I found the explanation in the books and also from older forum messages. My understanding is by no means complete, but I would summarize the situation using three use cases for making data portal calls.
In the multiple parameters use case, we got the invalid cast exception because we had multiple parameter signatures (i.e. overloads), including a method with a single string parameter. CSLA was attempting to convert the mobile list to the string. We ended up using customer criteria classes to pass multiple parameters. That reduces the problem to the single parameter use case, which works just fine. |
Beta Was this translation helpful? Give feedback.
The object factory model is unchanged from earlier versions of CSLA - I've implemented the new capabilities only for the encapsulated models so far.