Did you generate this typed data set by hand, or did you get it from a
database? If you got it from a database, then is the field nullable? If it
isn't, then I believe the data set designer would have generated a
Nullable<DateTimefor the parameters that can accept null.
As it is now, you have DateTime parameters, and you can not pass null,
as DateTimes are structures, and can not have null assigned to them.
--
- Nicholas Paldino [.NET/C# MVP]
-
mv*@spam.guard.caspershouse.com
<sa*******@gmail.comwrote in message
news:11**********************@x40g2000prg.googlegr oups.com...
hi
i am trying to pass null value for datetime field to typed dataset it
is not accepting
it is showing error as below
'Billing.FreightBillCollection.GetByDriverID(long, int,
System.DateTime, System.DateTime, System.DateTime, System.DateTime)'
has some invalid arguments