OracleArrayMappingAttribute Class
The OracleArrayMappingAttribute class is required to mark a custom class field or property with information that ODP.NET uses when a custom type represents an Oracle Collection type.
Class Inheritance
System.Object
System.Attribute
System.OracleArrayMappingAttribute
Declaration
[AttributeUsageAttribute(AttributeTargets.Field|AttributeTargets.Property, AllowMultiple=false, Inherited=true)]
// C#
public sealed class OracleArrayMappingAttribute : Attribute
Requirements
| Provider | ODP.NET, Unmanaged Driver | ODP.NET, Managed Driver | ODP.NET Core |
|---|---|---|---|
| Assembly | Oracle.DataAccess.dll |
Oracle.ManagedDataAccess.dll |
Oracle.ManagedDataAccess.dll |
| Namespace | Oracle.DataAccess.Client |
Oracle.ManagedDataAccess.Client |
Oracle.ManagedDataAccess.Client |
| .NET Framework | See System Requirements | See System Requirements | - |
| .NET (Core) | - | - | See System Requirements |
Remarks
An OracleArrayMappingAttribute object must be specified when a custom type represents an Oracle Collection. This attribute is applied only to the custom class member that stores the collection elements.
Thread Safety
All public static methods are thread-safe, although instance methods do not guarantee thread safety.