Up Model
DevForce Resource Center » Development guide » Model » Property interceptors

Property interceptors

Last modified on October 27, 2011 12:35

DevForce provides a mechanism to intercept and either modify or extend the behavior of any property on a DevForce entity. This property interception is intended to replace, and expand upon, the technique of marking properties as virtual and overriding them in a subclass. This facility is a lightweight form of what is termed Aspect-Oriented Programming.

Interception can be accomplished either statically, via attributes on developer-defined interception methods, or dynamically, via runtime calls to the PropertyInterceptorManager. Attribute interception is substantially easier to write and should be the default choice in most cases.

These topics apply both to entities generated from an EDM and entities coded by hand in "Code First" style.

Created by DevForce on June 21, 2010 12:21

Recently Visited


This wiki is licensed under a Creative Commons 2.0 license. XWiki Enterprise 3.2 - Documentation. Copyright © 2020 IdeaBlade