Change Set 20590 - It's All About the Templates

March 30, 2007 15:14

Using the new RunTemplate overload from the last CS, the Scaffolds have been moved to true templates! ScaffoldCodeGenerator.cs has been removed, as have all of the resource entries.  With this new model, you should find it a LOT easier to make modifications to the layout and presentation. In addition, these should provide an example of how powerful this templating model is, and how it can be used for building UI's as well as code. Start with BatchClassGenerator.aspx and follow the generation code to see how you can use the model to generate your own code. More on this in a later blog post...

For now, take a look at the new templates:

  • DynamicScaffold.aspx
  • GeneratedScaffoldMarkup.aspx
  • GeneratedScaffoldCodeBehind.aspx

Other Fixes/Changes

  • Small change in ClassTemplate.aspx to address a potential naming issue when a column name differed from a property name.
  • Fixed a problem with retrieving binary data types in AbstractRecord.GetValue()
  • Removed old .txt templates
  • Removed duplicated templates in SampleWeb/Templates

Download (Edit: Changed to 20600 because of check in issue)


3 Comments
Actions: E-mail | Permalink | Comment RSSRSS comment feed

Related posts

Comments

July 19. 2007 02:22

MAXMAN

Good ! thank the author.

MAXMAN

July 18. 2009 13:41

Easy Calm

I saw u are using BLogEngine from microsoft on this website - Looks literally vast. I determine it could be a approved alternative to wordpress. Thanks for letting me comment on your interesting site by the way. Regards, Marc.

Easy Calm

July 18. 2009 13:42

Natural anxiety cures

I saw u are using BLogEngine from microsoft on this site - Looks literally vast. I assume it will be a attractive alternative to wordpress. Thank you for letting me comment on your interesting website by the way. Regards, Marcel.

Natural anxiety cures

Comments are closed