Page 1 of 1

Column Mapping - LinqConnect

Posted: Tue 21 Sep 2010 19:16
by meetkarthik
When i add a table with the following definition

CREATE TABLE "TEST"
( "ID" NUMBER(19) NOT NULL ENABLE,
CONSTRAINT "TEST_PK" PRIMARY KEY ("ID")
)

in the model , the column ID is automatically mapped as 'Decimal' instead of 'Int64'

This seems to be working fine in Entity framework. The problem is happening only with LinqConnect.

Posted: Wed 22 Sep 2010 11:29
by StanislavK
LinqConnect uses the type returned by OracleDataReader. For Number(19) this is Decimal; we do not plan to change this behaviour, as this can affect compatibility with prior dotConnect for Oracle versions.

We are working on the possibility of configuring Oracle number mappings in the connection string, but cannot provide any timeframe for this. At the moment, a possible workaround is to set the needed type manually.

Posted: Wed 22 Sep 2010 20:40
by meetkarthik
Thanks for clarifying..