Well, Dannyboy, since you have declared that no one in Microsoft's
newsgroups should multi-group post, and you've flamed me twice, you must
be so unbelievably smart that you should be able to answer this simple
question, shouldn't you? Or is this one too tough for even the great
Danny O.
You want a flame? Ok, got one for ya...You are an idiot. Your logic is
throughly flawed and your arguments are extremely personal. Your rude,
unable to form a clear question, and quite unworth answering. Furthermore, I
have declared nothing. Multiposting like this is, in general, rude and
unhelpful. It irks the people who are here trying to help you as they have
to pay attention across multiple groups(especially when the poster is
incapable of responding to one without refering or inferencing the other)
and it marks you as lazy, impatient, and a bit self important.
Had I noticed that you multiposted, I likely would have not bothered
responding at all. There are thousands of messages here, billboarding, clock
advancing, and multiposting do little but push you towards the back of the
queue, if not off it entirely.
I doubt I'm alone on that.
How do I put a default on a DateTime field in an XSD for Visual Studio to
correctly generate the CS with the default coded for the column? I don't
want to you simply say, "It can't be done". I also don't want you to
tell me to simply "edit the CS after it is generated". I also don't want
you to say "it will work in whidbey". Let's see what you can come up
with.
I can tell you that xsd.exe\MSDataSetGenerator is lacking in a number of
ways atleast in 2k3, I've never tried it on whidbey so I couldn't say. And I
will also tell you that you would have a better shot at getting an answer on
a data or xml group than you will here. I despise XSD and pretty much avoid
datasets at all costs(I prefer entity objects combined with data readers).
And, fwiw, DataSet supports a WriteXml method that can spit out a schema
using a particular XmlWriteMode enumeration member. Perhaps you can pump out
a column with a default value, write the schema, and see what that produces?
If the generated dataset doesn't produce a column default, I would imagine
the generator simply doesn't support it.
If that doesn't work, you might also want to consider a replacement dataset
generator. I don't know of any off hand, as I've said before its not really
my core competency.
Repost your query into the ado group, they will likely know more about
strongly typed datasets.