Search found 8 matches
- Tue 04 Nov 2008 22:47
- Forum: dotConnect for Oracle
- Topic: ORA_ROWSCN pseudo column update error
- Replies: 7
- Views: 5538
- Tue 28 Oct 2008 19:44
- Forum: dotConnect for Oracle
- Topic: ORA_ROWSCN pseudo column update error
- Replies: 7
- Views: 5538
The problem was only partially solved by dotConnect 5.0.beta:
The SaveChanges() works fine but the new value of ORA_ROWSCN does not fetch back correctly -- the new value is set to be null.
The reason I found is: the new value of ORA_ROWSCN is availabe only after the change is committed. But in the generated sql statement by dotConnet, the ORA_ROWSCN is returned back before the commit. So we get back a null value.
Any comment? Thanks.
The SaveChanges() works fine but the new value of ORA_ROWSCN does not fetch back correctly -- the new value is set to be null.
The reason I found is: the new value of ORA_ROWSCN is availabe only after the change is committed. But in the generated sql statement by dotConnet, the ORA_ROWSCN is returned back before the commit. So we get back a null value.
Any comment? Thanks.
- Wed 17 Sep 2008 17:51
- Forum: dotConnect for Oracle
- Topic: Query logging?
- Replies: 1
- Views: 2198
Recently I was wondering the same question and it took me a while to figure it out. Man, we need better document Here is one way to do it:
1) refer to the following 2 assembly:
CoreLab.Data
CoreLab.Oracle
(which can be found at C:\Program Files\Devart\OraDirect.NET2\ if you installed the drivers in the default location).
2) create a monitoring objecct before you create the object context object:
CoreLab.Oracle.OracleMonitor oracleMonitor1 = new CoreLab.Oracle.OracleMonitor();
oracleMonitor1.IsActive = true;
3) Run the DBMonitor before you run your program.
That's it. You will catch all sql texts sent to the Oracle database.
1) refer to the following 2 assembly:
CoreLab.Data
CoreLab.Oracle
(which can be found at C:\Program Files\Devart\OraDirect.NET2\ if you installed the drivers in the default location).
2) create a monitoring objecct before you create the object context object:
CoreLab.Oracle.OracleMonitor oracleMonitor1 = new CoreLab.Oracle.OracleMonitor();
oracleMonitor1.IsActive = true;
3) Run the DBMonitor before you run your program.
That's it. You will catch all sql texts sent to the Oracle database.
- Wed 17 Sep 2008 17:43
- Forum: dotConnect for Oracle
- Topic: Entity Framework and System.Guid
- Replies: 10
- Views: 6062
I tried Shalex's suggestion by using
For query it works fine. But after I made some changes to the returned objects and called SaveChanges(), it throwed an optimisitics concurrency exception. With DBMonitor, I found the reason is: Guids are sent to Oracle in the "-" seperated format while in the database it is saved as no "-" strings. So it can not find the object just returned during updating.
Any thought? Thanks.
For query it works fine. But after I made some changes to the returned objects and called SaveChanges(), it throwed an optimisitics concurrency exception. With DBMonitor, I found the reason is: Guids are sent to Oracle in the "-" seperated format while in the database it is saved as no "-" strings. So it can not find the object just returned during updating.
Any thought? Thanks.
- Mon 15 Sep 2008 21:04
- Forum: dotConnect for Oracle
- Topic: Retrieving column values set by a trigger
- Replies: 3
- Views: 2731
If the column value is only set during insertion, you could add manually StoreGeneratedPattern="Identity" to the column defintion in the storage schema.
If the column value is set during insertion and update, you could add manually StoreGeneratedPattern="Computed" to the column defintion in the storage schema.
This works fine with me.
If the column value is set during insertion and update, you could add manually StoreGeneratedPattern="Computed" to the column defintion in the storage schema.
This works fine with me.
- Fri 12 Sep 2008 12:42
- Forum: dotConnect for Oracle
- Topic: ORA_ROWSCN pseudo column update error
- Replies: 7
- Views: 5538
- Thu 11 Sep 2008 18:34
- Forum: dotConnect for Oracle
- Topic: ORA_ROWSCN pseudo column update error
- Replies: 7
- Views: 5538
- Tue 09 Sep 2008 19:14
- Forum: dotConnect for Oracle
- Topic: ORA_ROWSCN pseudo column update error
- Replies: 7
- Views: 5538
ORA_ROWSCN pseudo column update error
After automatically generting the .edmx file from an Oracle 10g database, I manually add the following line:
into the store schema section and changed the conceptual schema and the c-s mapping accordingly.
The reading of ORA_ROWSCN is just fine. But when SaveChanges() was called, an exception occured: InternalExcpetion "{"Unknown column 'ORA_ROWSCN'"}".
Any suggestion? Thanks.
into the store schema section and changed the conceptual schema and the c-s mapping accordingly.
The reading of ORA_ROWSCN is just fine. But when SaveChanges() was called, an exception occured: InternalExcpetion "{"Unknown column 'ORA_ROWSCN'"}".
Any suggestion? Thanks.