Jeroen Derde's Blog

My Software Engineering Universe

Visio 2010 XSD

clock June 6, 2011 23:28 by author Jeroen Derde

About a week ago Microsoft published the XML Schema Definition (XSD) files for the Microsoft Visio 2010 XML Drawing (.vdx) format. This schema is also known as DatadiagramML.
This should make it alot easier to use the visio file to generate code based in the visio file.

The DatadiagramML Schema for Visio 2010 consists of three .XSD files:

  • visio.xsd is the core schema used by Visio 2003 and later
  • visio12.xsd is the set of extensions used by Visio 2007 and later
  • visio14.xsd is the set of extensions used by Visio 2010

More information about the schema is available in the Visio 2010 XML Schema Reference on MSDN.

Microsoft tech-ed 2010 Sessions

clock December 1, 2010 00:23 by author Jeroen Derde

 Had a really great time at Tech-Ed europe this year. Thanks to Schuberg Philis for doing the Dutch "Back To The Future" County Drink, it rocked.

Some of the sessions I visited and liked, you should watch these videos at Tech-ed Online:


Great session by Dino Esposito about Design considerations when building ASP.Net MVC applications

Whats new in ASP.Net MVC 3 by Jonathan Carter @lostintangent

Nice OData session to get started

And one to deep dive into the previous session

.Net University

clock October 9, 2009 21:52 by author Jeroen Derde


Free download of Powerpoint slides, demos, video's and example code of around 40 .net courses.



LINQtoSQL cheatsheet

clock August 21, 2009 22:56 by author Jeroen Derde






DamienG, just posted a LINQ to SQL cheatsheet for C# and

Download it at:



clock August 18, 2009 19:45 by author Jeroen Derde







Phil Haack just posted about REST and ASP.NET MVC.
He explains why the WCF team at Microsoft has put together an SDK and samples for building REST services using ASP.NET MVC.

The post can be found at:

I'll be giving this SDK a go, and keep you updated on my findings.

You might also want to take a look at this article about building a WCF REST client:



clock July 10, 2009 01:29 by author Jeroen Derde

Today I was experiencing a problem in the MVC application I am currently developing.

First some information:

Model: ContactDataModel
ContactDataModel implements interface IContactData. This is because the related typedview Step1 contains a partialView that inherits IContactData.
this way we can reuse the partial view simply by having each model, that needs to use the partialview, implement this interface.


Interface IContactData

public interface IContactData
    ContactData Contact { get; set; }


Object ContactData

public class ContactData
    public string Voornaam { get; set; }


View: Step1
This view inherits from ContactDataModel

<% Html.RenderPartial("ContactDataUserControl"); %>


Partial View: ContactDataUserControl
This view inherits from IContactData

<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<QNH.Interfaces.IContactData>" %>
<%= Html.ValidationSummary("Create was unsuccessful. Please correct the errors and try again.") %>
<% using (Html.BeginForm()) {%>
        <label for="Contact.Voornaam">
        <%= Html.TextBox("Contact.Voornaam")%>
        <%= Html.ValidationMessage("Contact.Voornaam", "*")%>
.........more fields....form closed


Controller: MyController

public ActionResult Step1( ContactDataModel contact )


The "POST" method "Step1" on MyController was recieving an empty ContactDataModel object. If I changed the the Step1 method to recieve the FormCollection instead of the Model object then my values would be present. After this I thought: what object is responsible for mapping the formvalues in my view to my model object. The answer is: the ComplexModelBinder.

The main thing to remember when using the ComplexModelBinder is the naming convention of your controls in the form. Because it uses reflection the ComplexModelBinder is expecting the Class Name + “.“ to be appended to the property name. If you are using the ComplexModelBinder and not prefixing the Class Name to the name of the Property, you will just get null values for your properties.

This means that in my partial view were I was using Contact.Voornaam I needed to use ContactData.Voornaam.This also means that I needed to change the name of the property in my interface to ContactData, because else it would not be recognised.

New Interface: IContactData:

public interface IContactData
    ContactData ContactData { get; set; }

New Partial View: ContactDataUserControl
This view inherits from IContactData

<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<QNH.Interfaces.IContactData>" %>
<%= Html.ValidationSummary("Create was unsuccessful. Please correct the errors and try again.") %>
<% using (Html.BeginForm()) {%>
        <label for="ContactData.Voornaam">
        <%= Html.TextBox("ContactData.Voornaam")%>
        <%= Html.ValidationMessage("ContactData.Voornaam", "*")%>
.........more fields...form closed


I really hope this helps out someone else. Happy Coding.


xVal - a validation framework for ASP.NET MVC

clock June 24, 2009 03:03 by author Jeroen Derde

Via Codeplex, and a bit later on Steve Sanderson’s blog I found some information on xVal.
xVal is, as the title of this post states) a validation framework for ASP.Net MVC.


A qoute from Steve's post that got me very exited to start using xVal.

"xVal lets you link up your choice of server-side validation mechanism with your choice of client-side validation library.
It guides you to fit them both into ASP.NET MVC conventions, so everything plays nicely with model binding and errors registered in ModelState."

What this means to me is that I can implement clientside validation via JQuery Validation( but if the client does not support JavaScript all validations will also be done serverside.
The validation is also only defined once (on the modal) which makes for much easier maintenance. This is quite a big deal because many of our customers require that the webapplications we build adhere to the accessability rules set by the Dutch government.(

Order a pile of pizza's because I'll be experimenting with xVal and ASP.Net MVC the next couple of days.

PS: if you don't know about DataAnnotaions yet, read this first:

Month List


<<  January 2023  >>

View posts in large calendar

Sign in