I have a table that references a child table with reference to parent (!), I am using LINQ to SQL, for a paricular scenario, when I want to serialize my result using Json(obj) in my controller code, I got an error saying.. “A circular reference was detected while serializing an object of type..” This issue is very well explained by Rick Strahl in his blog (link here) If we are using WCF services, setting SerializationMode …
3 articles Tag linq
A LINQ Thought
LINQ stands for Language Integrated Query. I want to stress on “Integrated” because I think the strength of LINQ comes from the fact that it is a data query engine that is integrated with .Net languages. This very reason gives us many features that we as developers are comfortable using in a language into our data manipulation operations. Lets take a simple example, In the above example, we are using simple string functions that are …
Using LINQ to manipulate data in DataSet/DataTable
Have you tried a micro ORM for your data access? Click to read more… LINQ (Language Integrated Query) provides a very easy and fast way to manipulate data that is cached in a DataSet. In .Net applications, DataSet represents a disconnected cache of data. Your application typically needs to search, filter thru this data in order to display this data according to the need. DataView provides a very limited options when it comes to creating …

Recent Comments