Wednesday, 3 June 2009

I just thought I’d mention this find ad David Ebbo mentioned overriding MetaTable to get at the table.GetScaffoldColumns() method, and then I found the Dynamic Data Futures sample inside of Preview 4 (which had a billing of being the Futures sample updated to work with Preview 4) and in side the it I found the CustomMetaClasses folder:

Figure 1 – The CustomMetaClasses folder

This of course give you the sample you need to do this your self my plan is to use this sample to make a MetaTable Class that I can pass in a Lambda function to do all my column generation without ever having to add IAutoFieldGenerator to the page (which in .Net 4.0 will not work on the Details, Edit and Insert pages as they are to be based on FormView to accomodate EntityTemplates).

So does this mean the whole IAutoFieldGenerator way of extending Dynamic Data is basically kaput? I was just trying to use your HideInColumnAttribute ideas and ran smack into the FormView issue. So I should try to figure out the CustomMetaClasses methodology instead? I was going to try to avoid using anything in the Futures part of Preview 4, only going so far as the VNext stuff to be on the cautious side. I guess I have no choice now but to go "whole hog"?

Links

Get Snagit

I have recently been asked to advertise some screen capture software on my blog (I had never heard of the software before so I'm not going to advertise here) however I already use Snagit for all my screen capture on this site, this is an excellent product for what I do here, with all the annotations and everything you can do with it so I thought I would put a post saying Snagit was what I used,