Search found 20 matches

by bhav27
Tue 19 Aug 2014 09:20
Forum: dotConnect for Oracle
Topic: InsertNullBehaviour.InsertDefaultOrNull not working in build server
Replies: 1
Views: 1598

InsertNullBehaviour.InsertDefaultOrNull not working in build server

We have a problem with dot connect of oracle when using EF6. In the stored file for .edml file generated we set following.

Code: Select all

<Property Name="ADDRESS_ID" Type="int64" Nullable="false" devart:DefaultValue="DDD_ADDRESS_ID.NEXTVAL" StoreGeneratedPattern="Identity" />
The Address_Id is populated correctly when record is saved in my local PC. However when we deploy this code using TFS build script the application do not generate correct insert sql as it do not include Address_id in the sql.

We get back database error due to this since key value cannot be inserted as null. I have installed EntityFramework dll in the project from Nuget package which I restored in the solution for TFS build. Everything else works fine for EF6 just the storedgeneratedpattern does not work. Am I missing anything? Here is the generated SQL

Code: Select all

DECLARE
  updatedRowid ROWID;
BEGIN
INSERT INTO AGTAPP.DDD_CONTACT(ROLE, FIRST_NAME, LAST_NAME, PHONE, MOBILE, FAX, EMAIL, QC_REPORT_CONTACT, LAST_UPDATED_BY)
VALUES (NULL, :p0, :p1, NULL, :p2, NULL, NULL, NULL, :p3)
RETURNING ROWID INTO updatedRowid;
OPEN :outParameter FOR SELECT DDD_CONTACT_ID, LAST_UPDATED_DATE FROM AGTAPP.DDD_CONTACT WHERE ROWID = updatedRowid;
END;

Code: Select all

            // Here we configure the EF-provider, so that the default values defined in the model are used 
            var config = OracleEntityProviderConfig.Instance;
            config.DmlOptions.InsertNullBehaviour = InsertNullBehaviour.InsertDefaultOrNull;

            _context = new DDDEntities();
Looking at the assemblies generated by TFS build (using .net reflector) I can see .csdl, .msl and .ssdl resources being correctly embedded. What is build server missing for EF6?
by bhav27
Mon 06 Feb 2012 16:31
Forum: dotConnect for Oracle
Topic: Problem with Trigger in TransactionScope
Replies: 16
Views: 5513

Re: Fixed it..

ramana.bhavaraju wrote:After 4 days of rocking my head against the wall, i found the issue was happenning only after a certain number of inserts into a table that had triggers attached to it which inturn write to some other table.

The issue is mainly due to devart transaction scope and the way it executes the sql statements i believe. Because once i chnage the connection string to "Direct = false", i dont have this error anymore.
So devart folks , please fix the issue and please send us a hotfix.

Bye,
Ramana @ Rosetta Inc.
Hi
We seems to have exactly same issue when using direct connection on version 6.50. Is this problem been solved?
by bhav27
Fri 06 Jan 2012 17:11
Forum: Entity Framework support
Topic: Another ORA-01453: SET TRANSACTION error
Replies: 12
Views: 3261

We are seeing this problem with direct connections to oracle with DAAB. I've sent support email.
by bhav27
Fri 01 Apr 2011 13:50
Forum: dotConnect for Oracle
Topic: generating entity framework on VS2010 SP1 beta
Replies: 5
Views: 2315

AndreyR wrote:The Visual Studio 2010 Service Pack 1 Beta support was added in December, 2010 (dotConnect for Oracle 6.0.69).
The support for the Visual Studio 2010 Service Pack 1 RTM version will be available in the nearest build. We plan to release this build till the end of March.
Has this problem now solved? We are not able to use dotconnect with EDM with VS2010 SP1
by bhav27
Mon 24 Jan 2011 09:52
Forum: Entity Framework support
Topic: Another ORA-01453: SET TRANSACTION error
Replies: 12
Views: 3261

AndreyR wrote:I have sent a test project to the e-mail address you have provided in the forum profile.
Please either change the project or create a new one reproducing the problem.
we are getting the same error when using dotConnect for Oracle with Entity Framework. Can you advice the work around?
by bhav27
Wed 04 Aug 2010 11:15
Forum: Entity Framework support
Topic: EF4 Poco entities with T4 template
Replies: 4
Views: 4198

AndreyR wrote:Could you please try the workaround I have suggested here?
I updated the .tt file as said. How do I generate POCO classes from model.edml?
by bhav27
Thu 22 Jul 2010 11:09
Forum: dotConnect for Oracle
Topic: BUG: Cannot build using Microsoft Team Build
Replies: 2
Views: 1353

AndreyR wrote:Can you reproduce this problem using latest 5.70.146 build?
We have fixed similar error in it.
I've reproduced same error in the 5.70.140 version. I've also sent support email for the solution. We'll install latest build and will see what happens.
by bhav27
Thu 22 Jul 2010 09:00
Forum: dotConnect for Oracle
Topic: OracleMonitor not working
Replies: 3
Views: 1544

Shalex wrote:Please refer to http://www.devart.com/dotconnect/oracle ... nitor.html:
1. Are you running your application and dbMonitor on the same host or you are tracing your application remotely?
2. Make sure that the OracleMonitor object exists and its IsActive property is set to true on the line of program where you are executing some sql against your database (e.g., use the Watch window of Visual Studio).
3. Does dbMonitor trace no events at all or dbMonitor does not trace only some particular queries?
4. Does the problem persist with the newly created applications?
5. Please tell us the exact version of your dotConnect for Oracle. You can find it via the Tools > Oracle > About menu of Visual Studio.
6. Try to localize the problem and send us a small test project to reproduce the issue in our environment.
I've done all above but still could not get dbMonitor to work. I am using 5.70.140.0 version of dotconnet for oracle. (professional edition).

I've also sent an email of sample project.
by bhav27
Mon 19 Jul 2010 16:03
Forum: dotConnect for Oracle
Topic: OracleMonitor not working
Replies: 3
Views: 1544

OracleMonitor not working

Hi
I'm having problem using oracle monitor which was working fine. Suddenly, the tool stopped working and no tracing is done. I've set the IsActive property to true and also the monitor is started but not traces.

One of my colleague ran the same application his seems to run fine.

Can someone advice what is wrong. I'm using version 3.0.2
by bhav27
Tue 13 Jul 2010 10:37
Forum: dotConnect for Oracle
Topic: update model (EF4) from database
Replies: 7
Views: 2481

AndreyR wrote:Please make sure that you have deleted the table from the Model.Store (go to Model Explorer). In the other case there should be the behaviour you describe.
That worked fine. Thanks.
by bhav27
Tue 13 Jul 2010 08:54
Forum: dotConnect for Oracle
Topic: update model (EF4) from database
Replies: 7
Views: 2481

AndreyR wrote:We are working on the model updating functionality.
At the moment I recommend you to use the drag&drop functionality of Database Explorer, just delete the modified entity from the Store part of the model (using Model Explorer) and add it again (using Database Explorer).
Your solution does not seems to work for us. I've modified a table in the oracle database and renamed one of its column. Then I refreshed Database Explorer which then shows me the table with same columns as database.

However, when I drag and drop the table in the model the properties of the table created still have old field name in the database table. Can you please advice why is my model not being updated?

I've tried to restart VS2008 and also PC but still facing same problem. Is there anyway to update model manual i.e. the XML generated?
by bhav27
Wed 05 May 2010 14:53
Forum: dotConnect for Oracle
Topic: PLS-00123: program too large (Diana nodes)
Replies: 2
Views: 4690

I solved this problem by setting the batch size to 200
by bhav27
Wed 05 May 2010 14:51
Forum: dotConnect for Oracle
Topic: Passing PL/SQL table as stored procedure parameter
Replies: 1
Views: 4051

Passing PL/SQL table as stored procedure parameter

Hi
I'm trying to pass Pl/sql table as a parameter to the procedure. I've created an example as per sample provided with dotconnect for oracle. But for some reason this seems to be not supported.

Kindly, can someone give us correct way of doing this?

Following is the error we get

ORA-03115 unsupported network datatype or representation

connection code

Code: Select all

using (OracleConnection conn = new OracleConnection())
            {
                conn.ConnectionString = "replace with yours";
                OracleCommand cmd = new OracleCommand("PKG_SAMPLE.SP00GETLIST", conn);
                cmd.CommandType = System.Data.CommandType.StoredProcedure;
                
                //cmd.Parameters.Add("P_CUSTOMERS", OracleDbType.Number).Value = new decimal[] { 1, 2, 3, 4 };
                //cmd.Parameters["P_CUSTOMERS"].ArrayLength = 4;

                conn.Open();

                OracleType numtype = OracleType.GetObjectType("NUMBERLIST", conn);
                OracleTable table = new OracleTable(numtype);
                table.Add(1);
                table.Add(2);
                table.Add(3);
                table.Add(4);
                cmd.Parameters.Add("P_CUSTOMERS", OracleDbType.Table).Value = table;

                IDataReader reader = cmd.ExecuteReader();

                while (reader.Read())
                {
                    Console.WriteLine(reader[1]);
                }
            }

Code: Select all

CREATE TYPE NumberList IS TABLE OF NUMBER;

CREATE OR REPLACE PACKAGE PKG_SAMPLE IS

  -- Author  : BHAVESHP
  -- Created : 05/05/2010 15:09:17
  -- Purpose : 

  -- Public type declarations
  TYPE T_CURSOR IS REF CURSOR;

  PROCEDURE SP00GETLIST(P_CUSTOMERS IN NUMBERLIST, CUR_OUT OUT T_CURSOR);

END PKG_SAMPLE;

CREATE OR REPLACE PACKAGE BODY PKG_SAMPLE IS
  PROCEDURE SP00GETLIST(P_CUSTOMERS IN NUMBERLIST, CUR_OUT OUT T_CURSOR) AS
  BEGIN
    OPEN CUR_OUT FOR
      SELECT *
        FROM CUSTOMER
       WHERE CUSTOMERID IN (SELECT * FROM TABLE(P_CUSTOMERS));
  
  END SP00GETLIST;
END PKG_SAMPLE;

-- Create table
create table CUSTOMER
(
  CUSTOMERID NUMBER,
  NAME       VARCHAR2(50)
)
tablespace USERS
  pctfree 10
  initrans 1
  maxtrans 255
  storage
  (
    initial 64K
    minextents 1
    maxextents unlimited
  );

insert into customer (1, "sample 1");
insert into customer (2, "sample 2");
insert into customer (3, "sample 3");
insert into customer (4, "sample 4");
[/code]
by bhav27
Wed 05 May 2010 13:57
Forum: dotConnect for Oracle
Topic: Devexpress XtraReports and dotConnect for Oracle issues
Replies: 6
Views: 4994

Shalex wrote:Have you set the DevartDataSet.YourTable.Active property to True in the design time? Please send us a small test project with the scenario which works with System.Data.SqlClient, but doesn't work with dotConnect for Oracle. Also please specify the versions of the DevExpress controls and dotConnect for Oracle (x.xx.xx) you are using. You can find the version of dotConnect for Oracle in the Tools | Oracle | About menu of Visual Studio.
I could not fine DevartDataSet.YourTable.Active property in the design time. Can you direct me where I can find that?
by bhav27
Tue 04 May 2010 14:49
Forum: dotConnect for Oracle
Topic: PLS-00123: program too large (Diana nodes)
Replies: 2
Views: 4690

PLS-00123: program too large (Diana nodes)

Hi
I get above error when my SSIS package tries to insert 1800 + records into the database. Does anyone have a clue to this problem?