Tag Archives: .NET
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 […]
How to create Strong named assemblies in .NET
This post is a very simple example of how to create strong named assemblies and use in a solution. Each project uses the same strong named key. One key is uesd for the whole solution. Step 1: Create the snk Key Open the Developer Command prompt as an administrator and enter sn -k C:/yourKeyPairName.snk Step […]
How to create a Professional Versioning in a .NET Solution
This post explains the steps in setting up a professional versioning in a .NET solution. Project versioning In solutions, many projects can exist. It is important to structure the project so that when creating a release, all assemblies are set to the release version. This should be set as part of the release build, not […]
.NET, Software Applications Architecture Overview
In this post (in the diagram), an overview of what components can be or should be used when creating modern .NET applications. It displays the components which are becoming more important and the components which are heading towards distinction. Only 3rd party components which can be used productively together with .NET components are shown. For […]
Getting started, using SQLite with .NET
This post is a collection from docs, links, code examples which I found on various blogs, websites etc. I have included the references to all my sources. Thanks for all the cool blogs, websites and of course SQLite which made it so easy to get started with this database. UPDATE 02.03.2014: With the release of […]
Creating a silent msi for Semantic Logging OUT-OF-PROCESS service using WiX
In a previous blog, the OUT-OF-PROCESS Semantic Logging service was installed from hand. (Power shell script and xml configuration). Enterprise Library 6, Semantic Logging, Part 2, OUT-OF-PROCESS A typical end user cannot be expected to do this. It would be better, if an msi could be created so that a fully pre-configured service can be […]
Validation in MVC, Enterprise Library, Fluent Validation, Data Annotations, FoolProof
MVC Validation MVC has many possibilities for validation. Depending on the use case, the correct validation should be used. Here is a list of MVC validation possibilities: Server side Model-level validation Server side Property-level validation Client side Model-level validation Server side Property-level validation Server side custom validation When validating, a number of problems can exist […]
Simple MVC Application using FluentValidation.MVC4
This is a simple example of MVC application using FluentValidation.MVC4. http://fluentvalidation.codeplex.com/ Create a new web application MVC4. Get the fluent validation using nuget: Create a validation rule set class: Now add the attribute to the model class: FluentDataModel Add the Provider to the Global.asax file App_Start() method And the validation works (Note: the dependency validation […]
Simple MVC Application using standard Validation (DataAnnotations)
This is a simple example of standard MVC validation provided in the .NET framework. Create a new MVC application. Edit the index.cshtml file. Important: for client validation to work, the scripts section must be included. (Defined per default in the _Layout View and the BundleConfig.cs in the App_Start folder) Create a Model Edit the web.config […]
