Re: Ria services, Data annotations

2012-03-01 Thread Stephen Price
Try [DisplayFormat(ConvertEmptyStringToNull = false)] This post isn't exactly your scenario but it could be related to the strings you have (nvarchar) and they might be defaulting to null? http://stackoverflow.com/questions/3129080/server-side-validation-of-a-required-string-property-in-mvc2-enti

RE: Ria services, Data annotations

2012-03-01 Thread Sergey Klementiev
Set them client-side to some dummy values inside entity OnCreated Regards, Sergey From: ozsilverlight-boun...@ozsilverlight.com [mailto:ozsilverlight-boun...@ozsilverlight.com] On Behalf Of David Burela Sent: Friday, March 02, 2012 11:18 AM To: ozSilverlight Subject: Ria services, Data annotatio

Ria services, Data annotations

2012-03-01 Thread David Burela
I've got a weird problem. There are tables in a database with these additional columns "CreatedById", "ModifiedById". (They are nvarchar, not null) There is then an entity framework model for this (again, strings, not null). RIA services is used to share the entities with the client. The problem