This project is read-only.

Creating a new Datastore

To create a new datastore, call the .CreateStore() method on your instance:

SQL CE
    Store = new SqlCeDataStore("pubs.sdf");
    if (!Store.StoreExists)
    {
        Store.CreateStore();
    }


SQLite
    Store = new SQLiteDataStore("pubs.sqlite3");
    if (!Store.StoreExists)
    {
        Store.CreateStore();
    }


OpenNETCF.ORM will not overwrite an existing database with the same name. This action raises an unhandled StoreAlreadyExistsException.

Last edited Dec 12, 2013 at 8:31 PM by MorbidZach, version 9

Comments

No comments yet.