问题标签 [sterling-db]

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

sterling-db - SterlingDB 2.0 测试版

我是一个完整的英镑新手,所以请原谅我的问题。我已前往新的 GitHub 存储库并下载了 SterlingDB 2.0 Beta 的最新源代码。我正在开发一个新项目,该项目将在 Windows 8 Store 应用程序、Windows 8 Phone 应用程序和 WPF 桌面应用程序中使用 Sterling,所有这些都基于 MVVM Light。因此,在源代码中使用您的测试项目,我了解商店和电话应用程序如何使用英镑,但 WPF 桌面如何使用英镑。或者更好的是需要在桌面应用程序中引用什么 dll。我使用 Wintellect.Sterling.Core 和 Wintellect.Sterling.Server 作为我的参考,但这只是因为我希望 WPF 应用程序使用应用程序文件夹。这对这个新版本是否正确?

顺便说一句,乔希,干得好...

奥格布拉特

0 投票
1 回答
151 浏览

silverlight - 英镑数据库 silverlight ArgumentOutOfRangeException

我们正在使用 sterling 开发一个浏览器外应用程序,我们有以下场景:

  1. 该应用程序可以使用快捷方式打开
  2. 如果我们打开编辑文件(具有特定扩展名),应用程序就会打开。

问题是在案例 2 中打开的实例似乎具有不同的 IsolatedStorage 并且没有共享数据,因此我们尝试执行以下操作

这会产生以下异常:

System.ArgumentOutOfRangeException 未被用户代码处理 Message=Specified 参数超出了有效值的范围。参数名称:basePath StackTrace:在 Wintellect.Sterling.IsolatedStorage.PathProvider._ContractForBasePath(String basePath) 在 Wintellect.Sterling.IsolatedStorage.PathProvider.GetKeysPath(String basePath, String databaseName, Type tableType, ISterlingDriver driver) 在 Wintellect.Sterling.IsolatedStorage。在 Wintellect.Sterling.Keys.KeyCollection 2._DeserializeKeys() at Wintellect.Sterling.Keys.KeyCollection2..ctor(ISterlingDriver 驱动程序,Func 2 resolver) at Wintellect.Sterling.Database.TableDefinition2..ctor(ISterlingDriver 驱动程序,Func2 resolver, Func2 键)在 Wintellect.Sterling.Database.BaseDatabaseInstance.PublishTables(ISterlingDriver) 在 Waf.Dal.Sterling.Database.OURInternalDB.RegisterTables() 的 Wintellect.Sterling.Database.BaseDatabaseInstance.CreateTableDefinition[T,TKey](Func`2 keyFunction) driver) at Wintellect.Sterling.Database.SterlingDatabase.RegisterDatabase[T](ISterlingDriver driver) at Waf.Dal.SterlingService.Starting() at Waf.Dal.Factory.Sterling.InitializeDatabase() at Waf.Dal.AireaStorageHelper.InitializeDatabase( ) 在 Waf.App.App..ctor() 内部异常:

更新:我试图替换文件夹值

异常消失了,但我原来的问题仍然存在,就像应用程序的 2 个实例使用不同的隔离存储一样。

0 投票
1 回答
70 浏览

c# - WinRT Sterling DB 在 Release 内置时崩溃

我在我的 winRT Metro 应用程序(win 8.0)中使用了 sterling DB 引擎。它在 Debug 中构建时效果很好,但是当我将构建配置更改为 Release 时,我在启动时遇到异常。

UnauthorizedAccessException HRESULT: 0x80070005 (E_ACCESSDENIED)

在:

在 BaseDatabaseInstance 中。

我正在使用从 codeplex 下载的 Sterling.WinRT 和 Sterling.Core。

0 投票
1 回答
54 浏览

silverlight - Sterling DB Windows mobile 10 支持

我在商店中有一个 WP8.0 Silverlight 应用程序。它使用 SterlingPhone 作为数据库。我在 Windows Mobile 10 Insider Preview 版本 (v10.0.10536.1004) 中下载了我的应用程序,似乎在我退出应用程序后数据已被删除。

我正在使用独立存储驱动程序:

有没有人遇到过这种情况?我知道 Sterling 已经很老了,但我认为它应该继续在 WM10 上工作。

如果我必须更改为另一个数据库引擎,我会很感激建议(由于嵌套对象,我的数据模型使得使用 Sqlite 变得非常困难)。

编辑:显然 Sterling 无法找到现有数据库,因此每次重新启动应用程序时都会重新创建它。

隔离存储截图

0 投票
0 回答
46 浏览

c# - saveAsync 数千条记录后处理的英镑异常

我正在尝试从 SQL 数据库填充英镑数据库,所以我查询 SQL 得到大约 6000

它似乎工作正常,但是当关闭与 _engine.Dispose(); 的连接时;

我得到以下异常:

我尝试检查 saveAsync BackgroundWorker 是否已完成,并且每次都完成。

如果我尝试在每个会话中保存更少的项目,那么一切正常。所以我的问题是:

有没有办法知道保存是否还没有完成?

请指教。

BR

乔治