We're currently migrating an existing application to ASP.NET MVC 3. We're reusing the database schema which contains all of our resources in the database rather than resx files.
We have a ResourceProvider that acts as a facade around the resource repository which has a method that accepts a Key and returns the specified resource in the users default culture.
We're going to want to leverage MVC's model DataAnnotations to bind our model to our razor views providing labels and validation etc.
My question is how do we achieve this so that it can talk to our ResourceProvider?
Do I need to implement a custom DataAnnotationsModelMetadataProvider? or is there a better/easier way to achieve this?
Any ideas are appreciated.