Setting default value for dataset?

D

Darren Clark

I am trying to set the default value (not mistaken for NULL value) for a datetime element of a typed dataset.
<xs:element name="create_date" type="xs:dateTime" codegen:nullValue="1980-01-01T00:00:00" default="1980-01-01T00:00:00" />

except i get the following error message

Custom tool error: Failed to generate code. Invalid Primitive Type: System.DateTime. Only CLS compliant primitive types can be used. Consider using CodeObjectCreateExpression.


1980-01-01T00:00:00 should convert to a valid datetime....

what am i doing wrong?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,482
Members
44,901
Latest member
Noble71S45

Latest Threads

Top