Schotime @ May 10, 2011
.NET
|
Comments (5)
Last weekend I created a Glimpse plugin for PetaPoco. It was surprisingly easy. In this post I’ll show you how to create your own. Please note as Glimpse is still in Beta, this example may change. but I will endeavour to update the post when and if the interface changes. This plugin is based on [...]
Schotime @ May 9, 2011
.NET
|
Comments (1)
Last week I blogged about upcoming performance statistics that enable you to see all the Sql’s that were executed by PetaPoco in the current request. It was also just over a week ago that I learned about Glimpse from this Mix video by Scott Hanselman. And wow what an impact. Anthony van der Hoorn (@anthony_vdh) [...]
Schotime @ July 2, 2010
.NET
|
Comments (11)
I have been having a look at the best way to theme a asp.net mvc website in the last few weeks. I heard about dot less css late last year but hadn’t had time to integrate it into a project until now. Integrating dot less css is pretty easy by default, as shown on its [...]
Schotime @ May 14, 2010
.NET
|
Comments (3)
In my last post I told you about how you can use Regular Expressions to do complex queries in mongodb. In this post I will show you some more features of the Linq Provider. Updated: 16th May 2010 after some feedback Take these two classes for example: public class User { public string Id { [...]
Schotime @ April 29, 2010
.NET
|
Comments (2)
Over the past few weeks I have got quite involved in the development of the Open Source NoRM project started by Andrew Theken which is a MongoDB driver for C#. In particular I have been refactoring and adding new functionality to the LINQ provider. It currently supports a lot of functionality including deep queries, regex, [...]
Schotime @ June 13, 2009
.NET
|
Comments (4)
After a few months of using FluentValidation I asked its author Jeremy Skinner if it were possible to integrate this with xVal. At that time it was not possible because there were no easy way to access the properties needed by xVal. After submitting a few patches, we now have a solution which enables xVal [...]
Schotime @ May 11, 2009
.NET
|
Comments (8)
A few weeks ago I found the Fluent Validation framework by Jeremy Skinner. I needed to conditionally validate a model depending on an application setting. eg. Description field mandatory / not mandatory depending on the clients business requirements. I loved the simplicity of the framework and the separation from the model it provided. Since then [...]
Schotime @ March 31, 2009
.NET
|
Comments (0)
In a previous post I showed you how you can use xVal and the IDataErrorInfo class to add validation to your Asp.net MVC website. In this post I will extend that to Linq-to-Sql and the classes it generates. The northwind database has a suppliers table. The info contained below is using that table with linq-to-sql. [...]
Schotime @ January 22, 2009
.NET
|
Comments (1)
Back in the days of Classic ASP, when you had a one too many relationship displaying the data was pretty painful. You would do things like var reference_number_old = "$##%@"; while (recordsExist) { reference_number = String(rs(0)); if (reference_number_old != reference_number) { Response.Write(reference_number); reference_number_old = reference_number; } //Do more stuff } Sooo very very painful, and [...]
Schotime @ May 27, 2008
.NET
|
Comments (4)
Recently I have been experimenting with Sockets and trying to communicate with a windows service both with a console app and a website. After managing to get some lines of communication going between the client and server applications, I couldn’t help but notice that it was taking a little bit longer than it probably should [...]