예제 #1
0
 // --------------------------------------------------------------------
 // データベースファイル生成(既存がある場合は作成しない)
 // --------------------------------------------------------------------
 public virtual void CreateDatabaseIfNeeded()
 {
     if (Properties != null && DbCommon.ValidPropertyExists(Properties))
     {
         // 既存のデータベースがある場合はクリアしない
         return;
     }
     CreateDatabase();
 }
예제 #2
0
        // ====================================================================
        // public 関数
        // ====================================================================

        // --------------------------------------------------------------------
        // データベースファイル生成(既存がある場合は作成しない)
        // --------------------------------------------------------------------
        public override void CreateDatabaseIfNeeded()
        {
            if (Properties != null && DbCommon.ValidPropertyExists(Properties))
            {
                TProperty property = DbCommon.Property(Properties);
                if (Common.CompareVersionString(property.AppVer, "Ver 1.18 α") >= 0)
                {
                    // 既存のデータベースがあり、キャッシュデータの互換性がある場合はクリアしない
                    return;
                }
            }
            CreateDatabase();
        }