|Command Parameters [message #490153]
||Wed, 07 October 2009 10:55
| Bob Walker
Registered: July 2009
I'm sure this must have been asked a thousand times, but I can't find a definitive answer anywhere.|
I want to pass a domain object to a Command handler, but of course Command parameters are String objects. I read that String command parameters are really for view ids or similar, which is fine - it feels wrong and fragile to pass around simplified Strings lookup keys for my own domain objects, and I won't always necessarily get my data from a selection provider, so is there an accepted way to do this?
As I type this, I'm wondering if it is a design flaw on my part to not get my data from a selection provider? Is that the correct way to do it?
Any pointers gratefully received,
Powered by FUDForum
. Page generated in 0.01636 seconds