Archives
-
Implementing an Interceptor Using NHibernate’s Built In Dynamic Proxy Generator
Updated: important correction, reported by Christoph; when the event is raised, the first argument should be info.Target, not this.Proxy. Thanks!
-
NDepend 4 – First Steps
Thanks to Patrick Smacchia I had the chance to test NDepend 4. I can only say: awesome!
-
Differences Between NHibernate and Entity Framework
Note: this post is outdated, read this for updated info on Entity Framework Core 8
-
ASP.NET MVC Validation Complete
OK, so let’s talk about validation. Most people are probably familiar with the out of the box validation attributes that MVC knows about, from the System.ComponentModel.DataAnnotations namespace, such as EnumDataTypeAttribute, RequiredAttribute, StringLengthAttribute, RangeAttribute, RegularExpressionAttribute and CompareAttribute from the System.Web.Mvc namespace. All of these validators inherit from ValidationAttribute and perform server as well as client-side validation. In order to use them, you must include the JavaScript files MicrosoftMvcValidation.js, jquery.validate.js or jquery.validate.unobtrusive.js, depending on whether you want to use Microsoft’s own library or jQuery. No significant difference exists, but jQuery is more extensible.