问题标签 [massive]

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 回答
299 浏览

c# - 大规模 ORM 删除列 SQLite

我正在将 Massive ORM 用于 wpf 应用程序。我有带有列表视图的屏幕,需要填充两个表(一个是主数据)。例如,我在单个列表视图中填充员工和薪水列表以及部门名称。员工表仅包含部门 ID。我应该能够更新员工的薪水。我已经用加入填充了列表视图。但是当我尝试更新整个列表时,它会抛出一个错误,即部门名称列不可用,这很明显。

问题

如何从“动态”列表中删除列?

有没有更好的方法来使用 Massive ORM 更新所有行?

谢谢尚卡拉·纳拉亚南。

0 投票
2 回答
524 浏览

c# - 使用海量 ORM 从表中选择不同的行

如何使用大量 ORM 从表中检索不同的行。我需要从具有列 ID,StudentName,Age 的表 'Student' 中获取唯一学生名的列表。ID 是主键。

注意:不需要使用 Query() 执行原始查询。

0 投票
1 回答
921 浏览

c# - 如何确定存储过程是否需要参数?

可能重复:
如何从 SQL Server 中的存储过程中检索参数列表

我正在使用 Massive 创建一个通用的存储过程执行器。基本上,我有一个函数,它采用过程名称和可变数量的参数。然后,我盲目地尝试使用传递的参数执行该存储过程并返回结果或处理错误。

我的问题是:有没有办法让我在调用存储过程之前确定存储过程需要哪些参数?

0 投票
1 回答
406 浏览

c# - 使用点表示法或索引访问 DynamicModel.Query

我正在使用带有 .NET 框架 4.0 的 Massive micro-orm 和 SQL Server 2008R2。

和另一堂课……

我想访问像 User.FirstName 或 User["FirstName"] 这样的用户动态对象。这是可能的,还是我错过了什么?

任何输入都受到高度赞赏。

谢谢。

0 投票
2 回答
1325 浏览

c# - 大规模:更新对象:无法更新标识列

我有以下情况......

  • 海量微ORM
  • .NET 框架 4.0
  • SQL Server 2008R2

模型:

用户表有一个 RefNo 列IDENTITY SEED=1,当我更新整个用户对象时,它会出错,无法更新标识列“RefNo”。我想传递整个对象进行更新,而不是形成长更新语句。

我该如何处理?

谢谢。

0 投票
2 回答
1303 浏览

c# - 海量:使用存储过程

我正在尝试使用 Massive micro-orm 执行存储过程。

在调试时,它甚至不会进入 Massive 库。我也试过像...

并且

似乎没有任何工作。使用相同的句柄 SELECT 查询有效,但不是存储过程。如果我在语句中创建一个断点并在“快速监视”中加载它并展开动态结果,它会启动存储过程。

0 投票
2 回答
670 浏览

dataset - 如何构建显示大量数据的简单 D3 图表?

我想使用 D3 构建具有数亿数据点的简单图表。

显然,我不会尝试一次绘制数百万个点。在任何给定时间,这些点中只有非常非常小的一部分(<1000)会出现。我将根据当前视图和缩放级别从服务器“按需”下载预处理数据,并希望使用 D3 的内置缩放和平移行为。

基本上,想象一个无限宽的条形图来回平移,并根据当前缩放级别(例如语义缩放)改变自身以显示适当的细节级别。

D3 中有哪些可用的技术来实现这一点,但仍然感觉反应灵敏且流畅?我应该避免做什么?有没有这样的例子?

0 投票
1 回答
152 浏览

isolation-level - 使用 Rob Conery 的 Massive 时未提交阅读

在使用 Rob Conery 的 Massive 而不编写自己的查询时,有没有办法进行未提交的读取?

它适用于主要是只读的站点。网站的 CMS 类型。

0 投票
1 回答
372 浏览

sql - 尝试获取 scope_identity() 时使用 Massive Insert 我得到 DBNull

我有一个带有标识列的表。
将 Massive 与这样的代码一起使用

然后

返回 DBNull :(

我需要做些什么来获得实际插入的身份值

0 投票
1 回答
1713 浏览

c# - "Database is locked" exception when using Massive with SQLite

Recently I browse the micro ORMs and I like Massive for SQLite because its simple. But I have now an issue.

I am just running some select statement followed by an update statement but I am getting an exception. Below is my code :

The Exception Message is : "Database is locked", at a method below in the Massive.SQLite source

When I look at Massive.SQLite source i see that massive never closes connections but instead relays on the using statement to dispose the connection object, as you can see in the above code.

OpenConnection() in the above code is a method that returns a new connection every time called.

If the case is that Massive is not closing the connection, and according to this SO question Sqlite is not good at concurrent connections and I am supposed to close it, how can I close it then? - the connection is not exposed to me.

I want to hear the best practice from developers using Massive with SQLite.