Questions tagged [sterling-db]

Sterling is a lightweight NoSQL object-oriented database for .NET 4.0, Silverlight 4 and 5, and Windows Phone 7 with LINQ to Object support.

Sterling is a lightweight NoSQL object-oriented database for .NET 4.0, Silverlight 4 and 5, and Windows Phone 7 that works with your existing class structures. Sterling supports full LINQ to Objects queries over keys and indexes for fast retrieval of information from large data sets.

The goal behind Sterling is to keep it:

  • Non-intrusive. You shouldn't have to change your classes just to persist them. (No awkward mapping from a class model to a relational database model).
  • Lightweight. As of this writing, the DLL for Sterling is under 85 KB. No one needs to bloat their project for something as simple as persisting data.
  • Flexible. While the core is light, Sterling is designed to handle any serialization task and make it ultra-easy to query databases using LINQ to Objects.
  • Portable. Sterling runs equally well on the desktop/server .NET framework, Silverlight, and Windows Phone.
15 questions
4
votes
4 answers

Is there something better than a serialized XML to store a simple DB in C# that can be compiled in my own assembly?

I'm making a simple app than needs to store a simple structure of data. Something that looks like a job for a serialized XML, but .. I remember reading somewhere about something that was better for the job, but simple enough to be compiled in my own…
Eduardo Molteni
  • 38,786
  • 23
  • 141
  • 206
3
votes
1 answer

Sterling database not persist on Windows phone

I followed sterling database examples from several persons. Neither of them seems to work out for me. When I persist some stuff on my database everything clearly gets persisted using sterling (on my phone, not emulator) when debugging. However when…
Marco
  • 4,817
  • 5
  • 34
  • 75
3
votes
3 answers

System namespace in another DLL

Here's my problem: I am using a DLL library (not from the .NET framework) which contains a System namespace with the Tuple and Lazy classes. When I try to compile my project the compiler throws some errors stating that these classes exist in…
Roman Golenok
  • 1,427
  • 9
  • 26
2
votes
3 answers

Options for Silverlight desktop app, Windows and Mac, with local database

I am evaluating options for a desktop app which needs to support both Windows and Mac, and given the resources we have available, it seems that Silverlight might be the best option. We would be looking at building a Silverlight 4 Out Of Browser app…
Carson63000
  • 4,215
  • 2
  • 24
  • 38
2
votes
2 answers

Sterling Db not using custom serialisation

I am using Sterling DB in a WP7 app and trying to implement a custom serialiser for, hopefully, performance gains. I'll provide an example (excuse all formatting, trying to compress it to keep it small). Given a type that inherits…
Adam Houldsworth
  • 63,413
  • 11
  • 150
  • 187
2
votes
2 answers

Silverlight: Sterling Throws Exception

I have a Sterling Service public sealed class SterlingService : IApplicationService, IApplicationLifetimeAware, IDisposable { private SterlingEngine _engine; private static readonly ISterlingDriver _driver = new IsolatedStorageDriver(); …
gaurawerma
  • 1,826
  • 13
  • 16
1
vote
1 answer

WP7 Sterling Database DateTime Index

I am using a Sterling Database and have defined a class and index as follows public class SingleEventDB :TimetableEventDB { public DateTime EventDateTime { get; set; } } CreateTableDefinition(k => k.UniqueId) …
Peter
  • 679
  • 1
  • 10
  • 25
1
vote
2 answers

WP7 Sterling very slow storing lots of data

I'm trying to store 46,000 objects in Sterling and it's taking 3 minutes. Yes I know it's a lot but this is data provided by the customer and could end up being a lot more. I'm guessing each time I save a new object it is looking up the key to see…
Steve Chadbourne
  • 6,873
  • 3
  • 54
  • 82
1
vote
1 answer

WinRT Sterling DB crashing when built in Release

I'm using sterling DB engine in my winRT metro app(win 8.0). It works great when built in Debug, however when I change build configuration to Release I'm getting an Exception on startup. UnauthorizedAccessException HRESULT: 0x80070005…
Skiba
  • 440
  • 1
  • 6
  • 17
0
votes
1 answer

Sterling serialization problem on Windows Phone 7

I have a problem with Sterling Database for Windows Phone. I implemented the database step by step in my wp7app, but it doesn't serialize my data when new entities are saved. For example: I serialize credentials using sterling database: var…
xawer
  • 3
  • 1
0
votes
0 answers

Sterling exception on dispose after saveAsync thousands records

I'm trying to populate a sterling db from a SQL db, so I query the SQL get about 6000 _engine = new SterlingEngine(new PlatformAdapter()); _engine.Activate(); string folder =…
MetalGeorge
  • 321
  • 6
  • 16
0
votes
1 answer

Sterling DB Windows mobile 10 support

I have a WP8.0 Silverlight app in store. It uses SterlingPhone as DB. I downloaded my app in a Windows Mobile 10 Insider Preview Version (v10.0.10536.1004) and it seems that data is removed after I exit the app. I am using…
nmilcoff
  • 1,084
  • 5
  • 20
0
votes
1 answer

Sterling database silverlight ArgumentOutOfRangeException

We are developing an out-of-browser application using sterling and we have the following scenario: The app can be opened with a shortcut If we open-edit files (with specific extension) the app opens up. Problem is that instances opened in case 2…
MetalGeorge
  • 321
  • 6
  • 16
0
votes
1 answer

SterlingDB 2.0 Beta

I am a complete Sterling newbie so please excuse my question. I have gone to the new GitHub repository and downloaded the latest source code for SterlingDB 2.0 Beta. I am working on a new project that will use Sterling in a Windows 8 Store app, a…
Orgbrat
  • 331
  • 6
  • 20
0
votes
1 answer

Can 2 Apps Access the 1 Sterling NoSQL Database?

I'm currently working with SterlingDB (not the phone 7 version) and would like to be able to access the same Sterling Database from 2 different applications (and therefore different AppDomains). I have ascertained that even when you pass a…
onefootswill
  • 3,707
  • 6
  • 47
  • 101