This project is read-only.

[Wish] DataAnnotations [StringLength] in class

Jan 5, 2011 at 12:04 AM

Is it possible to add the StringLength attirbute to the class with the value present as given up in the wsgen file ?
If not, I have to manually add this attribute in a buddy class, with the risk if I change the wsgen file, I forgot to adjust it in the buddyfile.

Unfortunately i can't build it dynamically in a buddy class. I tried this, but gives an error:

Jan 5, 2011 at 1:56 AM
Edited Jan 5, 2011 at 2:07 AM

Are you using the NHDAL for something that requires this? I am adding these to the EFDAL for the next version but do you really need annotation in a 3.5 project? These annotations are already in the EFDAL generated project.

Jan 6, 2011 at 10:51 AM

Tnx for your reply.

I am using the NHDAL. For the problem with "parameterless constructor" I have found a solution that also works fine, so I can keep using use NHDAL.