Separate Filename Test

37 views
Skip to first unread message

johan...@gmail.com

unread,
Feb 16, 2016, 4:46:07 AM2/16/16
to Siaqodb - NoSQL embedded database for .NET
Good evening,
I am evaluating Siaqodb as the databse for my new multi OS app. I do need the ability to create a separate database for certain objects.
I tried the following in the .NET example program:

                SiaqodbConfigurator.SetDatabaseFileName<Company>("Test");

A separate database file was not generated. Am I doing something wrong?

Also, the Database manager included with 5.5 does not seem to work. The .NET example also crashed on me.


Siaqodb Support

unread,
Feb 16, 2016, 11:18:34 AM2/16/16
to Siaqodb - NoSQL embedded database for .NET, johan...@gmail.com
Hello,
That method exists for backwards compatibility only. Starting with Siaqodb 5.0 all objects are stored in one database file. But if you want to store certain objects in one file and some others in another file, you can use 2 databases folder, example:

Siaqodb objectsGroup1= new Siaqodb("dbFolder1");
Siaqodb objectsGroup2= new Siaqodb("dbfolder2");


and the use those instances to store the objects you need to store in corespondent db/group. 
Reply all
Reply to author
Forward
0 new messages