This question is locked. New answers and comments are not allowed.
I have been using Telerik OpenAccess for years now, and one frustrating issue is the inability for good code encapsulation from generated object classes to enforce business rules within the domain to throw exceptions, etc when necessary using the designers rather than going completely to fluid mapping. It would be great if we had more control in the entities designer to control how properties are generated in mapped class. I have have even tried to create my own code generation templates which ultimately creates more of a headache then helps. Partial classes are a good start, but we cannot enforce business rules with generated properties or encapsulate logic in our data layer. I'm aware of the fluent mapping support, but this is more work than we are prepared for.
Right now if we select the storage behavior to PersistentReadOnly or PersistendWriteOnly, it affects the properties generated which is great, but it also throws an exception if we try and set the private fields manually through our own custom methods. It would be great if setting this behavior controlled the code generation only, but still allowed us to set these fields. That, or some additional storage behavior options or an actual implementation of the CustomBehavior which we have been waiting for for a while now?
This seems like it would be an fairly easy modification/feature to add... I'm hoping you will consider this in your next release.
Thank you!
Right now if we select the storage behavior to PersistentReadOnly or PersistendWriteOnly, it affects the properties generated which is great, but it also throws an exception if we try and set the private fields manually through our own custom methods. It would be great if setting this behavior controlled the code generation only, but still allowed us to set these fields. That, or some additional storage behavior options or an actual implementation of the CustomBehavior which we have been waiting for for a while now?
This seems like it would be an fairly easy modification/feature to add... I'm hoping you will consider this in your next release.
Thank you!