RIA Services and EF Verification

I am developing a Silverlight application with Entity Framework and RIA Services. When I create the RIA service, I have the opportunity to generate a metadata class for basic validation.

What is the difference between validation that I can do directly with EF and that in the metadata class generated by the RIA service? I mean, if I have a property in the EF model that is not null, I don’t need to mark it in the metadata class as [Required] ... Is this because it is already done by the EF model ??

THANK!

+3
source share
1 answer

. . System.ComponentModel.DataAnnotations. EF Required. , RangeAttribute, StringLength , .

Jeff Handly , WCF Ria Services.

+3

Source: https://habr.com/ru/post/1790168/


All Articles