Esempio n. 1
0
            protected override void CreateDatabaseMedia()
            {
                string filename;

                if (!databaseName.EndsWith(".sdf"))
                {
                    filename = string.Format("{0}.sdf", databaseName);
                }
                else
                {
                    filename = databaseName;
                }

                SqlCEDbHelper.CreateDatabaseFile(filename);
            }
Esempio n. 2
0
 protected override void CreateDatabaseFile()
 {
     SqlCEDbHelper.CreateDatabaseFile(CurrentFilePath);
 }
 /// <summary>
 /// Creates the in memory db schema using the scope
 /// </summary>
 public void SetupDB()
 {
     SqlCEDbHelper.CreateDatabaseFile(DatabaseFilename);
     ActiveRecordStarter.CreateSchema();
 }