Hi Walaa,
I've reviewed the thread(s), but, unfortunately, they do not answer my question... Basically, I want to know, when using an LLBLGen DAL, how do I provide localized error messages in Silverlight? I understand how to make use of RIA attributes for validation and displaying error messages when using EF41, but what I don't understand is how to accomplish the error messages with LLBLGen. I know how to add RIA attributes in LLBLGen and have done so... What I need to know is the following:
1) LLBLGen does validation of string lengths for fields.... What error messages do you generate for RIA when there is an error?
2) Are your messages localized?
3) If they are localized, what languages are supported?
4) Where are your resource files so we could add additional translations?
5) If you don't provide error messages, then how can I override your RIA validation? Would inserting [Required], [StringLength], [DisplayName] in fields in your designer conflict with your validation?
Thanks,
Mike
****************** Proper RIA Error Message Example ***********************
[Display(Name = "Voornaam", ResourceType = typeof(Resources.Resources))]
[Required(ErrorMessageResourceType = typeof(Resources.Resources), ErrorMessageResourceName = "Voornaam_Required")]
[StringLength(50, ErrorMessageResourceName = "Voornaam_StringLength", ErrorMessageResourceType = typeof(Resources.Resources))]
public string Voornaam { get; set; }