DevForce Help Reference
DataSourceKeyNameAttribute Class
Members 


Defines an attribute that associates an Entity subclass with a DataSourceKeyName.
Syntax
'Declaration
 
<AttributeUsageAttribute(ValidOn=AttributeTargets.Class, 
   AllowMultiple=True, 
   Inherited=True)>
Public NotInheritable Class DataSourceKeyNameAttribute 
   Inherits System.Attribute
   Implements System.Runtime.InteropServices._Attribute 
'Usage
 
Dim instance As DataSourceKeyNameAttribute
[AttributeUsage(ValidOn=AttributeTargets.Class, 
   AllowMultiple=true, 
   Inherited=true)]
public sealed class DataSourceKeyNameAttribute : System.Attribute, System.Runtime.InteropServices._Attribute  
Remarks
This attribute is auto-generated by the Object Mapper on each Entity class using the name of the data source key specified for the Entity Model. It is also generated on each EntityManager partial class to indicate which datasource keys are present within the EntityManager. Multiple datasource key attributes may be marked on a single EntityManager because an EntityManager may consist of multiple partial classes each representing a different data source. At run time, the actual data source key used is resolved based on the DataSourceKeyName attribute and the data source extension used by the Entity Manager.
Inheritance Hierarchy

System.Object
   System.Attribute
      IdeaBlade.EntityModel.DataSourceKeyNameAttribute

Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

DataSourceKeyNameAttribute Members
IdeaBlade.EntityModel Namespace

Send Feedback