How to make numerical field name CLS compliant?

Rahul picture Rahul · Jul 5, 2013 · Viewed 8k times · Source

I am working on .net framework 3.5 and using RDLC files for reporting in my project. Problem that I am facing is that in my Dataset I have a numerically named field "63" and whenever I am using it in my RDLC file its showing me this error

"A field in the dataset ‘DataSet1’ has the name ‘63’. Field names must be CLS-compliant identifiers."

I have already performed few things like.

1.) [assembly: CLSCompliantAttribute(false)]

in my project's assemblyInfo.cs

2.) and placing attribute name under square brackets. eg :[63] in my Dataset.

But all went futile any help will be appreciated Thank You

Answer

Digital Alchemist picture Digital Alchemist · Jul 5, 2013

Ok, then try this.

  1. Open the xsd file.

  2. Right click on the table.

  3. Select configure.

  4. Assign an alias in the select statement.

  5. Update report.

This link might help u out