Last post Nov 24, 2010 01:10 AM by ctang
Nov 22, 2010 11:57 PM|CTang|LINK
How can I implement static entity in Dynamic Data + EF. For example, there are some values that is not stored in database, usually for simple categorization, like: M-Male, F-Female, or maybe 1-ABC, 2-DEF, 3-GHI. So, instead of creating a database table,
just for few rows, is there a way I can create the entity on the model itself (or maybe use POCO?), but how to link it with Dynamic Data? Or is there any other better way?
I would like to know the best or most efficient solution for this case.
Thank you in advance.
Nov 23, 2010 04:06 AM|sjnaughton|LINK
Hi CTang, have a look at my blog post here Dynamic Data Custom Field Template – Values List, Take 2 this may be what you want, you could also use Enumeration
Dynamic Data 4
Nov 24, 2010 01:10 AM|CTang|LINK
Thank you for the speedy response.
I'm still exploring DD if I can use it in my current system instead of creating so many data entry screen one by one. And as of my test data, so far I just encountered integer value, but I will expect to see character value as well. So I will try both Custom
Field Template and Enumeration.