I have the following Solution:
- SomeProject.Ria (non Silverlight code)
- SomeProject.Ria.Silverlight (Silverlight light code, namespace is still SomeProject.Ria)
- SomeProject.Ria.MyServices (RIA Services Domain Service)
- SomeProject.Ria.MyServices.Proxies (RIA Services Silverlight Generated Code)
- SomeProject.Shell (Silverlight Applicaiton)
- SomeProject.Web (Web Application)
I would like to use Resource Files for my Annotations on the meta data class in SomeProject.Ria.MyServices.
The format for that appears to be:
[Required(AllowEmptyStrings=false,ErrorMessageResourceName="ThisFieldIsRequired", ErrorMessageResourceType(MyResource))]
Which project does MyResource belong in? (Assuming that someday I need to support other culture files).
Also the use of the string in here really seems to breed room for error, is it possible to do something like this and still achieve localization, or does this just get compiled into the meta data? If not, how can I get round the resource name being a string?
[Required(AllowEmptyStrings=false,ErrorMessage=MyResources.RequiredMessage)]