Esempio n. 1
0
        public override void Upgrade()
        {
            string constr = GetConnectionString(true);

            using (SqlCeEngine en = SqlCeFactory.CreateSqlCeEngine(constr))
            {
                en.Upgrade();
            }
            this.sqlCEConnection.Open();
        }
Esempio n. 2
0
        public override void Create()
        {
            string connectionString = GetConnectionString(true);

            if (!File.Exists(this.DatabasePath))
            {
                using (SqlCeEngine en = SqlCeFactory.CreateSqlCeEngine(connectionString))
                {
                    en.CreateDatabase();
                }
            }
        }