Including code from MvcScaffolding.