dotconnect

Oracle MERGE statement not 'sticking' using DevArt dotConnect for Oracle

橙三吉。 提交于 2019-12-25 05:52:20
问题 I'm using an Oracle MERGE statement in dotConnect for Oracle, I know that the MERGE itself is fine as runs in P-Sql and SQL Developer, yet using the dotConnect and ExecuteNoQuery the query is apparently successful (no exceptions thrown) but the table has had no updates or inserts taken place. I can break the query into an Update and an Insert and they stick ok. Any Ideas ? 回答1: We have answered to you at our forum: http://forums.devart.com/viewtopic.php?f=1&t=29549 As a workaround, you can

Oracle MERGE statement not 'sticking' using DevArt dotConnect for Oracle

≡放荡痞女 提交于 2019-12-25 05:52:09
问题 I'm using an Oracle MERGE statement in dotConnect for Oracle, I know that the MERGE itself is fine as runs in P-Sql and SQL Developer, yet using the dotConnect and ExecuteNoQuery the query is apparently successful (no exceptions thrown) but the table has had no updates or inserts taken place. I can break the query into an Update and an Insert and they stick ok. Any Ideas ? 回答1: We have answered to you at our forum: http://forums.devart.com/viewtopic.php?f=1&t=29549 As a workaround, you can

Can we control LINQ expression order with Skip(), Take() and OrderBy()

北城以北 提交于 2019-12-20 19:41:37
问题 I'm using LINQ to Entities to display paged results. But I'm having issues with the combination of Skip() , Take() and OrderBy() calls. Everything works fine, except that OrderBy() is assigned too late. It's executed after result set has been cut down by Skip() and Take() . So each page of results has items in order. But ordering is done on a page handful of data instead of ordering of the whole set and then limiting those records with Skip() and Take() . How do I set precedence with these

CLOB vs. VARCHAR2 and are there other alternatives?

北城余情 提交于 2019-12-13 12:25:51
问题 I am using DevArt's dotConnect and Entity Developer for my application. I've created the tables using the Entity-First feature. I notice that many of the column types are set to CLOB. I only have experience with MySQL and Microsoft SQL server, so I am not sure about using CLOB for the application. I did some reading, and found out that CLOB are for large chunk of data. The questions are: Is using CLOB for most fields, such as the user's gender (which should be a varchar (1) ) or the full name

Why does my DataGridview refuse to refresh?

夙愿已清 提交于 2019-12-12 03:14:34
问题 I'm updating a row in a table. A subset of the table is shown in a DataGridView. When I update the row, the change is not reflected in the DataGridView. Even though I'm calling DataGridView.Invalidate() and DataGridView.Refresh() after committing the change, I have to shut down the app, restart, and re-run the query before the change can be seen. The pertinent code is: private void buttonUpdate_Click(object sender, EventArgs e) { const int TICKETID_COLUMN = 0; String _ticketID = dataGridView1

How to generate and auto increment Id with EF Core Oracle

こ雲淡風輕ζ 提交于 2019-12-11 02:54:11
问题 I use entity framework core 2 Code first to generate data in Oracle 11g, the entity provider is dotConnect, my POCO class is as follow: public partial class Favoritepage { [Key] [DatabaseGenerated(DatabaseGeneratedOption.Identity)] public int Id { get; set; } public int Personnelid { get; set; } public int Pageid { get; set; } } My DbContext is as follow: public partial class ModelContext : DbContext { public virtual DbSet<Favoritepage> Favoritepage { get; set; } protected override void

Database connection string and collation

柔情痞子 提交于 2019-12-06 08:56:01
Is it possible to set connection collation within MySql connection string and how, since there's a default setting on the server that's used for new connections. Two things I can't do : Can't call SET COLLATION_CONNECTION after I open a connection, because I'm using Entity Framework that does all the calls for me not entirely true as you may see in the edit Can't change server default connection collation because of other databases and their respected applications that use them. All I'd like to specify is a certain connection string parameter in my web.config file like: "User id=dbuser

CLOB vs. VARCHAR2 and are there other alternatives?

你离开我真会死。 提交于 2019-12-05 00:52:36
I am using DevArt's dotConnect and Entity Developer for my application. I've created the tables using the Entity-First feature. I notice that many of the column types are set to CLOB. I only have experience with MySQL and Microsoft SQL server, so I am not sure about using CLOB for the application. I did some reading, and found out that CLOB are for large chunk of data. The questions are: Is using CLOB for most fields, such as the user's gender (which should be a varchar (1) ) or the full name, feasible? The steps for converting a CLOB field to VARCHAR2 requires dropping the column then re

Can we control LINQ expression order with Skip(), Take() and OrderBy()

倾然丶 夕夏残阳落幕 提交于 2019-12-03 06:23:11
I'm using LINQ to Entities to display paged results. But I'm having issues with the combination of Skip() , Take() and OrderBy() calls. Everything works fine, except that OrderBy() is assigned too late. It's executed after result set has been cut down by Skip() and Take() . So each page of results has items in order. But ordering is done on a page handful of data instead of ordering of the whole set and then limiting those records with Skip() and Take() . How do I set precedence with these statements? My example (simplified) var query = ctx.EntitySet.Where(/* filter */).OrderByDescending(e =>

Database connection string and collation

六眼飞鱼酱① 提交于 2019-12-01 08:53:27
问题 Is it possible to set connection collation within MySql connection string and how, since there's a default setting on the server that's used for new connections. Two things I can't do : Can't call SET COLLATION_CONNECTION after I open a connection, because I'm using Entity Framework that does all the calls for me not entirely true as you may see in the edit Can't change server default connection collation because of other databases and their respected applications that use them. All I'd like