jgauffin / griffin.mvccontrib

A contribution project for ASP.NET MVC3
http://blog.gauffin.org/tag/griffin-mvccontrib/
GNU Lesser General Public License v3.0
83 stars 40 forks source link

Fix and features #41

Closed paolosanchi closed 11 years ago

paolosanchi commented 11 years ago

Hello, i'm here again (i like so much your library), i've fixed some bugs, plus i've added the support for nullable enum in the SelectGenerator. Finally i've separated the default format for the unknwn translations, i've put it in the DefaultCulture, i think it's a good place. I did it so i can call it in the SelectGenerator, extracting that logic from the LocalizedModelMetadataProvider.

I have slowness issues, so i've implemented a CachedStringProvider, but the first time it get the strings it still remain slow. I will try to let LocalizedModelMetadataProvider extends CachedDataAnnotationsModelMetadataProvider to see if i gain some speed, but this imply to target the project to the framework 4.5