Writing complex classes to file?

c# entity-framework-6 system.reflection

Question

I am learning the ins and outs of Entity Framework right now and being a practical learner I just wrote some simple examples of the kind of stuff that I'm looking at in C# and went through the classes in Visual Studio's Object Explorer ("tooltip").

This is however quite confusing at times and I was wondering if I can't just print out the stuff that I have and look at all of it at once.

I tried using Newtonsoft.Json but it tells me it can't deal with that kind of data because of "self referencing loops" and stuff, which I guess makes sense, considering the type of objects that I'm looking at .

Is there a way to enumerate the different kinds of ItemCollections (EdmItemCollection, ObjectItemCollection, etc), MetaDataWorkSpaces, and what else there is, and print them out? Or am I forced to go back to theoretical learning?

1
0
7/18/2018 10:11:31 AM

Popular Answer

You should use a watch.

It allows you to look into the object structures while debugging.

It works better than the tooltip, and navigation is quite easy.

watch

1
7/18/2018 10:15:27 AM


Related Questions





Related

Licensed under: CC-BY-SA with attribution
Not affiliated with Stack Overflow
Licensed under: CC-BY-SA with attribution
Not affiliated with Stack Overflow