Every property on a DevForce entity has a GetterInterceptor and a SetterInterceptor. These interceptors can be used to add or remove the actions associated with that property. Under the covers this is going through the PropertyInterceptorManager mechanism, but the syntax is often simpler.
For example, here's a "before get" action added to the Employee.Title property getter:
C# | Employee.PropertyMetadata.Title.GetterInterceptor.AddAction( IbCore.PropertyInterceptorTiming.Before, args => args.Value = args.Value.ToUpper()); |
VB | Employee.PropertyMetadata.Title.GetterInterceptor.AddAction( _ IbCore.PropertyInterceptorTiming.Before, Function(args) _ args.Value = args.Value.ToUpper()) |