This thread looks to be a little on the old side and therefore may no longer be relevant. Please see if there is a newer thread on the subject and ensure you're using the most recent build of any software if your question regards a particular product.
This thread has been locked and is no longer accepting new posts, if you have a question regarding this topic please email us at support@mindscape.co.nz
|
hi, have been looking at the new metadata api stuff recently, have a couple of questions:
cheers justin |
|
|
Regarding property setters: The reason is simple -- LightSpeed doesn't know about your properties! We had people asking for an API that represented LightSpeed's view of the world precisely so they could bypass properties and just e.g. clone entities directly. If we provided an API that went through properties then really all we'd be doing would be wrapping the Reflection API and we don't see much value to that. However, you can easily build an extension method for the FieldInfo type to set the property via the setter, something like: public static void SetValueViaProperty(this FieldInfo field, Entity entity, object value) { Regarding validation: We didn't implement this for the first cut, but we should be able to add that for you reasonably easily. I'll see what we can do! |
|
|
ok, thanks. re validation - not at all urgent. thanks |
|