Jump Start : Using MongoDB with C#

Among NoSQL databases, MongoDB is very much popular. For those who need an introduction, MongoDB is an open sourced document database providing high performance, availability, and automatic scaling. Being a document database, a record/row in MongoDB is know as document. The data structure of a document is similar to JSON object, having key and value pairs. A key is a string, whereas the value can be a string/ number/ another document/ arrays/ arrays of documents. A document looks like this:

Continue reading


ConditionalAttribute in C#

The Conditional attribute which is an alias for ConditionalAttribute present in System.Diagnostics, makes the execution of a method dependent on a preprocessing identifier. It can be applied to a method or an attribute class. It tells the compiler to include the method or attribute, based on whether the identifier is defined or not. We can use the following methods to define the identifier :

Continue reading