See Also

OracleConnection Class  | OracleConnection Members  | OracleNumberMappingCollection Class

Language

Visual Basic

C#

Show All

See AlsoLanguagesDevart.Data.OracleSend comments on this topic.

NumberMappings Property

Devart.Data.Oracle Namespace > OracleConnection Class : NumberMappings Property (OracleConnection)

Gets or sets the collection of number mappings used for this connection.

[Visual Basic]
Public ReadOnly Property NumberMappings As OracleNumberMappingCollection
[C#]
public OracleNumberMappingCollection NumberMappings {get;}

Return Type

A OracleNumberMappingCollection object representing the number mappings.

Remarks

Allows you to override default number mapping rules for the connection. Default value is an empty collection, which means to use default rules.

Example

This sample demonstrates how to override default number mapping rules.

[C#] 

OracleConnection oracleConnection = new OracleConnection(); 
 
// Map NUMBER(10)..NUMBER(18)  to Int64 
oracleConnection.NumberMappings.Add(OracleNumberType.Integer, 10, 18, typeof(Int64));  
 
// Map NUMBER(1)  to Boolean 
oracleConnection.NumberMappings.Add(OracleNumberType.Integer, 1, typeof(bool)); 

[Visual Basic] 

Dim oracleConnection as New OracleConnection

' Map NUMBER(10)..NUMBER(18) to Int64
oracleConnection.NumberMappings.Add(OracleNumberType.Integer, 10, 18, GetType(Int64))

' Map NUMBER(1) to Boolean
oracleConnection.NumberMappings.Add(OracleNumberType.Integer, 1, GetType(Boolean))

See Also

OracleConnection Class  | OracleConnection Members  | OracleNumberMappingCollection Class

 

 


© 2002 - 2013 Devart. All Rights Reserved.