Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Json format #202

Open
kamelEddinee opened this issue Dec 10, 2020 · 1 comment
Open

Json format #202

kamelEddinee opened this issue Dec 10, 2020 · 1 comment

Comments

@kamelEddinee
Copy link

I'm working on .net core 3.1 with wpf , is there any way to pass data source as json or class object

@DadvDadv
Copy link

Reporting Services only accept "IEnumerable" datas (list of 0 to x objects)

You can convert your json to anonymous type like here : https://stackoverflow.com/a/34324117/5034209
but you should only have in your dataset a x row object

For example :
{ "Id" : 1, "Name" : "MyName" , "City" : { "Name" : "CityName" , "ZipCode" : "0000000"} }
Should be in c#:

new List (){ new { Id = "Name" , Name = "MyName" , City_Name = "CityName", City_ZipCode = "0000000" }

Same thing with class.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants