Exemple #1
0
        public static void ExecuteNonQuery(SqlCommand sqlCommand)
        {
            using (var connection = CoreConnection.GetConnection())
            {
                connection.Open();

                using (var command = sqlCommand)
                {
                    int rowsAffected = command.ExecuteNonQuery();
                }
            }
        }