Visual Basic (Declaration) | |
---|---|
<AttributeUsageAttribute(ValidOn=AttributeTargets.Class, AllowMultiple=True, Inherited=True)> Public NotInheritable Class DataSourceKeyNameAttribute Inherits System.Attribute Implements System.Runtime.InteropServices._Attribute |
Visual Basic (Usage) | ![]() |
---|---|
Dim instance As DataSourceKeyNameAttribute |
C# | |
---|---|
[AttributeUsageAttribute(ValidOn=AttributeTargets.Class, AllowMultiple=true, Inherited=true)] public sealed class DataSourceKeyNameAttribute : System.Attribute, System.Runtime.InteropServices._Attribute |
C++/CLI | |
---|---|
[AttributeUsageAttribute(ValidOn=AttributeTargets.Class, AllowMultiple=true, Inherited=true)] public ref class DataSourceKeyNameAttribute sealed : public System.Attribute, System.Runtime.InteropServices._Attribute |
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.
System.Object
System.Attribute
IdeaBlade.EntityModel.DataSourceKeyNameAttribute
Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family