devart

Delphi: How to get the query that is passed to the server when parameters are used

血红的双手。 提交于 2019-11-30 21:59:24
I have a query with parameters inside a Devart TMSQuery.SQL. Something like select * from customers where customer = :CustomerID in code I do // Delphi sqlcustomer.ParamByName('CustomerID').asinteger := 4; sqlcustomer.open; I want to debug and see the exact sql command sent to the server, if I try to use TMSQuery.sql I just have the :CustomerID, while I would like to have this: select * from customers where customer = 4 is there a quick way to have this without reading all the parameters and reconstructing manyally the query? Of course I have a very big query with more than 100 parameters,

DevArt's dotConnect for Oracle vs DataDirect's ADO.NET data provider

主宰稳场 提交于 2019-11-30 21:26:16
Has anybody done a comparative analysis of dotConnect for Oracle from DevArt and the ADO.NET data provider from DataDirect . We are thinking of using the Entity Framework support available in these frameworks for a critical enterprise application. Some articles that I read suggest the following: DevArt dotConnect is much faster as compared to DataDirect DataDirect license is more expensive that the DevArt license Can anybody throw more light on the technical aspects so as to aid the decision making process? As nobody from disinterested parties haven't left any comments yet, we'll try to post

Linq to Entities and LEFT OUTER JOIN issue with MANY:1 relations

ⅰ亾dé卋堺 提交于 2019-11-30 20:12:24
Can somebody tell me, why does Linq to Entities translate many to 1 relationships to left outer join instead of inner join ? Because there's referential constraint on DB itself that ensures there's a record in the right table, so inner join should be used instead (and it would work much faster) If relation was many to 0..1 left outer join would be correct. Question Is it possible to write LINQ in a way so it will translate to inner join rather than left outer join . It would speed query execution a lot... I haven't used eSQL before, but would it be wise to use it in this case? Would it solve

How can I use LinqPad's generated context in Visual Studio

喜夏-厌秋 提交于 2019-11-30 17:26:55
问题 This is a follow-on from this question really: Moving From LINQpad to a Proper Visual Studio Project? ..but I'm not able to get it to work properly. An answer to that question suggestions dumping the context assembly out as a dll but although I have done that, when I import it as a reference, it's not exactly clear to me how I would create an instance of that context, point it at a database and actually run a query against it, something like the following: var db = new ContextFromThatDLL

Poor performance getting clob field from Oracle in .Net

断了今生、忘了曾经 提交于 2019-11-30 17:01:36
问题 I am trying to read a clob column from oracle in .Net and observing very poor performance and lots of network traffic. I have tried ODP+OCI, devArt+OCI ways to access the data with the same results - it takes around 20 seconds to get 1000 rows in a data reader and read the clob value for each row. Examining wireshark traces, it turns out that every time I try to read the clob field for a single row in the reader, there are additional multiple tcp packets sent between client and server. So for

System.Data.MetadataException: Unable to load the specified metadata resource

泄露秘密 提交于 2019-11-30 10:56:38
My connection strings are as follows: <add name="RollCallDBEntities" connectionString="metadata=res://System.Engine/RollcallNS.csdl|res://System.Engine/RollcallNS.ssdl|res://System.Engine/RollcallNS.msl;provider=Devart.Data.Oracle;provider connection string="User Id=user;Password=password;Server=127.0.0.1;Direct=True;Sid=ORCL"" providerName="System.Data.EntityClient" /> my code are as follows: using (var db= new RollCallDBEntities()) //ok { var query = db.TBL_ROLLCALL.ToList(); //Unable to load the specified metadata resource. } my assembly: System.Engine Anyone have any ideas? these links did

DevArt's dotConnect for Oracle vs DataDirect's ADO.NET data provider

故事扮演 提交于 2019-11-30 05:40:48
问题 Has anybody done a comparative analysis of dotConnect for Oracle from DevArt and the ADO.NET data provider from DataDirect. We are thinking of using the Entity Framework support available in these frameworks for a critical enterprise application. Some articles that I read suggest the following: DevArt dotConnect is much faster as compared to DataDirect DataDirect license is more expensive that the DevArt license Can anybody throw more light on the technical aspects so as to aid the decision

Linq to Entities and LEFT OUTER JOIN issue with MANY:1 relations

喜欢而已 提交于 2019-11-30 04:44:12
问题 Can somebody tell me, why does Linq to Entities translate many to 1 relationships to left outer join instead of inner join ? Because there's referential constraint on DB itself that ensures there's a record in the right table, so inner join should be used instead (and it would work much faster) If relation was many to 0..1 left outer join would be correct. Question Is it possible to write LINQ in a way so it will translate to inner join rather than left outer join . It would speed query

System.Data.MetadataException: Unable to load the specified metadata resource

不问归期 提交于 2019-11-29 16:20:27
问题 My connection strings are as follows: <add name="RollCallDBEntities" connectionString="metadata=res://System.Engine/RollcallNS.csdl|res://System.Engine/RollcallNS.ssdl|res://System.Engine/RollcallNS.msl;provider=Devart.Data.Oracle;provider connection string="User Id=user;Password=password;Server=127.0.0.1;Direct=True;Sid=ORCL"" providerName="System.Data.EntityClient" /> my code are as follows: using (var db= new RollCallDBEntities()) //ok { var query = db.TBL_ROLLCALL.ToList(); //Unable to

How to call a Stored Procedure inside an oracle package with Entity Framework?

删除回忆录丶 提交于 2019-11-28 09:23:37
I have a package in oracle 11g as follow: CREATE OR REPLACE PACKAGE "HRS.PKG_TRAINING_SP" as TYPE T_CURSOR IS REF CURSOR; procedure GETPERSONNELTRAINIGLIST( personnel_Id_in in string, base_date_in in string, is_current_in in number, lst OUT T_CURSOR ); end; How can I execute above procedure package ( GETPERSONNELTRAINIGLIST ) with Entity Framework (code-first)? Note: I am using Entity Framwork 6.0 (code-first) and devart EF Provider for Oracle. Updated: I am using following code: var param1 = new OracleParameter("personnel_Id_in", OracleDbType.VarChar, "c5eb5589-8fee-47b6-85ad-261a0307cc16",