How does Microsoft Visual Studio Web Code Generation Design work?
Blog