Minor performance request - expose HasManagedProperties from BusinessBase

Minor performance request - expose HasManagedProperties from BusinessBase

Old forum URL: forums.lhotka.net/forums/t/5689.aspx


rsbaker0 posted on Tuesday, October 28, 2008

I'm transitioning into managed properties/fields, and it looks like there isn't currently a way (at least in CSLA 3.5) to test whether you actually have any managed fields without this causing the FieldManager to be instantiated, child level set, etc.

It would be nice if this could be done with minimal overhead. You have an internal IManagedProperties interface and BusinessBase efficiently implements the desired HasManagedProperties function but since it's internal I can't use it.

A protected BusinessBase member would be fine. :)

Ash002 replied on Tuesday, October 28, 2008

Hi, also is it possible to expose FieldManager.GetRegisteredProperties() in a way that doesn't require an instance of the business object? Currently we simply create a new instance to access our list of PropertyInfos, which are overridden to store some meta data.

Thanks

Ashley

Copyright (c) Marimer LLC