コード例 #1
0
            protected override void CreateDatabaseMedia()
            {
                string filename;

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

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