Monthly Archives: January 2014
Multiple ViewModels in a single MVC View
This post shows how to use multiple models in a single view. The models can be used in separated forms or together in one form. You could use each child model with a separate ajax post if required. Only properties in the parent class affect the child models, but a property in a child model […]
Getting started with Elasticsearch and .NET
At present there are 2 main players in the full text searches for applications. Solr and Elasticsearch. Both are built using Lucene. There’s a lot of dicussion about which is the best, but for me, Elasticsearch provides some better features and seems to be growing faster. I decided to choose Elasticsearch because you require no […]
Comparing Protobuf, JSON, BSON, XML with .NET for File streams
This post compares the Serialization to files using Protobuf, Json.NET (Newtonsoft) JSON and BSON, Servicestack Json and plain .NET Xml. The test measures the whole operation and not just serialization to a memory stream. Code: https://github.com/damienbod/SerializationToFileTests For Serialization, the tests use an Object class with int, double, string, Object properties and also a List of […]
SignalR Message Buffers with SQLite
This post demonstrates how to set up a very basic message queue using SignalR with SQLite. This could be used to collect data from a measurement system or a client which is not always online but no data messages should be lost or the sequence of the messages. Code: https://github.com/damienbod/SignalRMessagingBuffering Only the client contains a […]