问题标签 [devart]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
1 回答
2779 浏览

.net - 使用 .Net 实体框架和 Devart dotConnect for MySQL 的时间戳问题

我的 MySQL 数据库中有下表:

CREATE TABLE IF NOT EXISTS Benutzer (
Id INTEGER PRIMARY KEY AUTO_INCREMENT,
Login VARCHAR(20) NOT NULL,
Nachname VARCHAR(50) NOT NULL,
Vorname VARCHAR(50) NOT NULL,
Timestamp TIMESTAMP DEFAULT 0 ON UPDATE CURRENT_TIMESTAMP
)

在我的 Visual Studio 2010-edmx 中,Timestamp 字段具有以下属性:

StoreGeneratedPattern: Computed
Type: DateTime

在将新记录插入表中时,出现以下异常:

Devart.Data.MySql.MySqlException:不正确的日期时间值:第 1 行的列“时间戳”的“0001-01-01 00:00:00”。

我需要时间戳字段来处理并发问题。

Devart.Data.MySql.Entity 的版本是 6.0.86.0。我正在使用 Visual Studio 2010 和 .Net Runtime 3.5 Sp1。

帮助表示赞赏。

0 投票
2 回答
1455 浏览

oracle - EF4 Oracle 身份插入

有谁知道是否可以在不使用 StoredProcedure 的情况下从 ef4 调用 oracle 的 sequence.NextVal?我有一个无法修改的客户端的 Oracle 数据库,因此 stroedproc 不适合我。我使用ef4 ctp5。

感谢!

0 投票
1 回答
4028 浏览

c# - 未找到许可证问题 devart postgres sql

我已经使用 devart dot connect 控件开发了一个应用程序。我已经部署在服务器上,使用 iis。但是,每当我尝试对数据库执行任何操作时,都会收到未找到许可证的错误。我已将许可证文件复制到应用程序的 bin 和根目录中,但无济于事。其他任何人都会遇到此错误。如果是这样,您是如何管理的?

0 投票
1 回答
1485 浏览

oracle - ProviderIncompatibleException 与实体框架 4 ctp5 和 oracle express

当我尝试使用 dotConnect for Oracle 和实体框架 4 ctp5 连接 Oracle express 数据库时遇到了 ProviderIncompatibleException。我有 Oracle Express 10g,我今天下载了 Oracle Express 的试用版,所以我的 dll 版本号为 6.0.86.0

这是我的配置。知道如何解决问题吗?

0 投票
1 回答
1081 浏览

mysql - Devart MySQL 6.10.96 还是 MySQL 连接器 6.3.6?

只是想知道是否有人对 DevArt MySQL 是否 > MySQL Connector 有任何看法?过去,当我使用 MySQL 时,MySQL 连接器对于 C# ASP.NET 开发工作真的很糟糕。

任何人都可以就使用 DevArt 还是更好的方法提供意见?

0 投票
2 回答
688 浏览

c# - 使用 Devart 或 NHibernate

亲爱的,我有管理这么多数据的项目。有时我必须显示近 100 万行的数据。如果我有 2 个选择来解决它,并且我想让它在显示数据时更快,我在DevartNHibernate之间选择哪种技术更好?我正在使用 PostgreSQL 作为数据库,并希望尽可能快地显示数据

rgrds

0 投票
1 回答
761 浏览

linq-to-entities - Linq to Entities control table name resolution at runtime

I've implemented a content management system that deals with a certain kind of object, and now the client has introduced another kind of object, whose structure and behavior is exactly the same, but separate. They want to be able to switch modes, where each mode behaves identically, except that one deals with one object type and the other with the other.

Suppose the first object type is stored in a table called TBL_OBJECT, and the second in one called TBL_OBJECT_NEW. I'm looking for a way to use my existing code, but to be able to switch on the fly and have it switch to the other table. Because the structure is identical, this is conceptually possible. The only problem is that in L2E, the table name is saved as attribute and compiled in, so I'm looking for a way to hook the sql statement creation process, so that my existing statements like this:

will resolve to the TBL_OBJECT_NEW table instead of the TBL_OBJECT table. If I can do this, I can reuse a huge amount of code. I know it's a somewhat unusual scenario, but I'm really hoping it's possible. Any help much appreciated! Thanks.

By the way, I'm using LinqConnect from DevArt for this; I don't know how much a plain L2E approach will apply to this. On the other hand, if you know how to do it with DevArt but NOT L2E, that would still be very helpful.

0 投票
2 回答
8698 浏览

.net - 当我使用 Link 时,分布式事务已经开始“ORA 02046”

我有一个非常大的问题在我使用时出现几个步骤devart 连接到 Oracle。

  • 在 Oracle 代码中的以下视图中选择:

    /li>
  • 使用 LINQ 连接模式

就是这样,当我打开页面时,将显示以下异常(从第一次或回发后)

分布式事务已经开始“ORA 02046”

任何帮助!

0 投票
2 回答
2504 浏览

entity-framework - 实体框架连接可为空的连接列

我的 Devart 实体框架提供程序将以下 linq 用于实体。

注意:连接列是数据库中的可为空类型,因此是十进制的?在c#中

生成的 SQL 为:

加星标的 (*) OR 和 AND 为我的 sql 的执行增加了额外的秒数。当语句被放入 toad (oracle devart ef provider btw) 时,带有星号的项目 rem'd sql 显然运行得更快。

我的问题是:我的 linq 实体有错还是遗漏了什么?还是 Devart EF 提供程序的问题?

问题更新:您好,作为这个问题的原始创建者,如果可能的话,我想尝试弄清楚这个问题。来自 LukLed 的评论 - “默认实体框架提供程序正常工作,不会创建这样的 SQL 条件。这不仅是错误的,而且是一个巨大的性能打击”。我主要关心“性能打击者”的评论,这个打击是巨大的,尤其是当连接两侧的行数攀升时。我不得不使用 ExecuteStoreQuery<> 或 Sproc 来规避这种行为。这意味着没有 linq,我不得不戴上我的 sql 帽子来完成工作。

0 投票
2 回答
803 浏览

.net - DevArt dotConnect for Oracle - 如何使用参数执行 WHERE LIKE 子句?

如何WHERE COLUMN LIKE '%SearchTerm%'使用DevArt dotConnect for Oracle库?

理想情况下使用CommandParameter搜索词?


我没有高兴地尝试了以下方法:


我已经得到了它的工作:


但我不喜欢用%符号包裹这个词——有没有正确或更好的方法?