The OracleObjectMappingAttribute
class marks custom class fields or properties with information that ODP.NET uses when a custom type represents an Oracle Object type.
System.Object
System.Attribute
System.OracleObjectMappingAttribute
// C# [AttributeUsageAttribute(AttributeTargets.Field|AttributeTargets.Property, AllowMultiple=false, Inherited=true)] public sealed class OracleObjectMappingAttribute : Attribute
The OracleObjectMappingAttribute
is specified on members of a custom type that represent an Oracle object type. This attribute must specify the name or zero-based index of the attribute in the Oracle object that the custom class field or property maps to. This also allows the custom type to declare field or property names which differ from the Oracle Object type.
All public static methods are thread-safe, although instance methods do not guarantee thread safety.
Namespace: Oracle.DataAccess.Types
Assembly: Oracle.DataAccess.dll
ODP.NET Version: ODP.NET for .NET Framework 2.0 or ODP.NET for .NET Framework 4
See Also:
OracleObjectMappingAttribute
members are listed in the following tables.
OracleObjectMappingAttribute Constructors
OracleObjectMappingAttribute
constructors are listed in Table 16-8.
Table 16-8 OracleObjectMappingAttribute Constructors
Constructor | Description |
---|---|
Instantiates a new instance of |
OracleObjectMappingAttribute Static Methods
OracleObjectMappingAttribute
static methods are listed in Table 16-9.
Table 16-9 OracleObjectMappingAttribute Static Methods
Method | Description |
---|---|
|
Inherited from |
|
Inherited from |
|
Inherited from |
|
Inherited from |
|
Inherited from |
OracleObjectMappingAttribute Properties
OracleObjectMappingAttribute
properties are listed in Table 16-10.
Table 16-10 OracleObjectMappingAttribute Properties
Property | Description |
---|---|
Specifies the index of the Oracle Object attribute that must be retrieved |
|
Specifies the name of Oracle Object attribute that must be retrieved |
|
|
Inherited from |
OracleObjectMappingAttribute Methods
OracleObjectMappingAttribute
methods are listed in Table 16-11.
Table 16-11 OracleObjectMappingAttribute Methods
Method | Description |
---|---|
|
Inherited from |
|
Inherited from |
|
Inherited from |
|
Inherited from |
|
Inherited from |
|
Inherited from |
OracleObjectMappingAttribute
constructors create new instances of the OracleObjectMappingAttribute
class.
OracleObjectMappingAttribute(string)
This constructor creates and initializes an OracleObjectMappingAttribute
object with the specified Oracle Object attribute name.
OracleObjectMappingAttribute(int)
This constructor creates and initializes an OracleObjectMappingAttribute
with the specified Oracle Object attribute index.
See Also:
This constructor creates and initializes an OracleObjectMappingAttribute
object with the specified Oracle Object attribute name.
// C#
public OracleObjectMappingAttribute(string attrName);
attrName
The name of the Oracle Object attribute to map to.
The attrName
parameter is case-sensitive.
OracleObjectMappingAttribute
static methods are listed in Table 16-12.
Table 16-12 OracleObjectMappingAttribute Static Method
Method | Description |
---|---|
|
Inherited from |
|
Inherited from |
|
Inherited from |
|
Inherited from |
|
Inherited from |
OracleObjectMappingAttribute
properties are listed in Table 16-13.
Table 16-13 OracleObjectMappingAttribute Properties
Property | Description |
---|---|
Specifies the index of the Oracle Object attribute that must be retrieved |
|
Specifies the name of the Oracle Object attribute that must be retrieved |
|
|
Inherited from |
See Also:
This property specifies the index of the Oracle Object attribute that must be retrieved.
// C# public int AttributeIndex {get;}
The zero-based index of an Oracle Object type attribute.
The AttributeIndex
property specifies the index of the Oracle Object type attribute that the custom class field or property maps to. This allows the custom class to declare fields or property names that differ from the Oracle object.
This property specifies the name of the Oracle Object attribute that must be retrieved.
// C# public string AttributeName {get;}
The name of an attribute of an Oracle Object type.
The AttributeName
property specifies name of the attribute in the Oracle Object type that the custom class field or property maps to. This allows the custom class to declare field or property names that differ from the Oracle object.
The specified attribute name is case-sensitive.
OracleObjectMappingAttribute
methods are listed in Table 16-14.
Table 16-14 OracleObjectMappingAttribute Methods
Method | Description |
---|---|
|
Inherited from |
|
Inherited from |
|
Inherited from |
|
Inherited from |
|
Inherited from |
|
Inherited from |