AX 2012 use System.Data dll in X++


Can anyone provide the code to use the System.Data dll in AX 2012.


System.Data is already included in AOT > References, therefore you can immediately use types defined there in your X++ code through .NET Interop from X++. For example:

System.Data.DataTable t = new System.Data.DataTable();

Thanks for your response.

Is there any steps/link available for adding a new reference and using it in X++ code. this would help me to understand this.

You could have found this by a search engine: How to: Add a Reference to a .NET Assembly [AX 2012].