Esempio n. 1
0
 /// <summary>
 ///     Checks if we need to do some migrations to the database
 /// </summary>
 /// <param name="migrationStore">migrationStore.</param>
 public void CheckMigration(string migrationStore)
 {
     using (SqlConnection connection = new SqlConnection(connectionString))
     {
         connection.Open();
         Assembly       assem     = GetType().Assembly;
         MSSQLMigration migration = new MSSQLMigration(connection, assem, migrationStore);
         migration.Update();
     }
 }
Esempio n. 2
0
        /// <summary>
        /// Checks if we need to do some migrations to the database
        /// </summary>
        /// <param name="migrationStore">migrationStore.</param>
        public void CheckMigration(string migrationStore)
        {
            using (SqlConnection connection = DatabaseConnection())
            {
                Assembly       assem     = GetType().Assembly;
                MSSQLMigration migration = new MSSQLMigration(connection, assem, migrationStore);

                migration.Update();

                connection.Close();
            }
        }
Esempio n. 3
0
        /// <summary>
        /// Checks if we need to do some migrations to the database
        /// </summary>
        /// <param name="migrationStore">migrationStore.</param>
        public void CheckMigration(string migrationStore)
        {
            using (SqlConnection connection = DatabaseConnection())
            {
                Assembly assem = GetType().Assembly;
                MSSQLMigration migration = new MSSQLMigration(connection, assem, migrationStore);

                migration.Update();
            }
        }