How can I extract all objects mentioned in a SQL Command using C#?