Up Property interceptors

The EntityPropertyNames class

Last modified on October 27, 2011 13:05

In all of the previous examples we have shown ‘Named” attributes specified with the form “EntityPropertyNames.{PropertyName}. This is a recommended pattern that ensures type safety. However, the following two attribute specifications have exactly the same effect:


// or


' or


The ‘EntityPropertyNames’ reference is to a class that is generated (as multiple partial classes) inside the designer code file associated with the EntityModel. Its primary purpose is to allow specification of property names as constants. Note that because EntityPropertyNames is generated as a set of partial classes, you can add your own property names to the class for any custom properties that you create.

Created by DevForce on October 07, 2010 13:28

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