Querying MongoDB using .NET Core

Querying MongoDB using .NET Core

Querying MongoDB using .NET Core Intro The following article shows how to querying MongoDB using .NET Core. MongoDB has recently released  the .NET Core support inside the C# driver (Net Core Support Driver). In fact, 2.3.0 version of C# Drivers has already been released to Nuget. The demo code is available on GitHub. Setup the demo ...

2 mins

Querying Mongodb with ASP.NET MVC

Querying Mongodb with ASP.NET MVC

Querying Mongodb with ASP.NET MVC The following example shows how to query mongodb using ASP.NET MVC projects. Mongodb community offers drivers to facilitate the integration between ASP.NET and mongo, all drivers are available in NuGet Package Manager, you can find all references here. Setup MongoDB The following tutorial shows how to install Mongodb: Installing MongoDB. ...

Conditional serialization using Csharp

Conditional serialization using Csharp Sometimes you need to serialize attributes according to conditions and properties of your own class, you can do that use the ShouldSerialize method. This method is used by different serialization libraries, for example: System.Xml.Serialization, Newtonsoft.Json (a popular JSON framework for .NET). The following syntax shows the declaration of ShouldSerialize method: Example ...

Older posts