Upgrade to AX 2012 R2. Then use LINQ. A code example.
Update:
If not possible, then create an AX query, either in AX or programmaticly from .Net. Then use the query the get the AX records. A working example.
Or use the AX 2012 AIF Query AIF Web Service.