Re: DBNull.Value



Date is a type in .NET, DBNull.Value is a null value in the db. What to do
is check for something like DateTime.MinValue and then set the db paramater
value to that value if it matches.
"bafidi" <bafidi@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:E526677F-CAFE-4757-991B-86EE53EA4705@xxxxxxxxxxxxxxxx
>i cant use DBNull.Value
>
> i have a date property
>
> Private m_son_degisiklik_tarihi As Date
> Public Property Son_Degisiklik_Tarihi() As Date
> Get
> Return m_son_degisiklik_tarihi
> End Get
> Set(ByVal Value As Date)
> m_son_degisiklik_tarihi = Value
> End Set
> End Property
>
> i want to put null value to
> Son_Degisiklik_Tarihi=DBNull.Value
> but when i write DBNull.Value there are signs under it and it means that
> it
> doesnt work
>
> how can i put null to Son_Degisiklik_Tarihi?
> is there any way to put null values to date property
>


.



Relevant Pages

  • right click!!
    ... just nothing..even if i try to copy and paste i cant. ... and paste using the keyboard and that doesnt work either...can anyone help ... Prev by Date: ...
    (microsoft.public.windowsxp.help_and_support)
  • Re: proper way to nest AND & OR with IF?
    ... Obviously I am missing something here, but I cant see it! ... I used to do this in 123 all the time, and I thought the proper syntax ... in excel was IF,arg3),do_this,or_this) - but that ...
    (microsoft.public.excel.worksheet.functions)
  • Internet Explorer 6 settings
    ... minimised so I could switch between them, now if I click on a link to ... another site it opens in the same window and I cant even click back to the ... I've tried changing the IE settings but nothing has worked. ... Prev by Date: ...
    (alt.os.windows-xp)
  • Win XP Home ,missing ntoskrnl.exe
    ... He then tried repairing XP home twice and it still doesnt work. ... He then tried upgrading to XP home again, ... He also tried Recovery console and try copying ntoskrnl file from CD rom, but still didnt work. ... he cant lose the data in C drive. ...
    (microsoft.public.windowsxp.setup_deployment)
  • Open Mail Merge from button on Access 2003
    ... will open Word and the mail merge document automaticly, and cant seem to find ... I am currently using Office 2003 with Windows XP is that changes anything ... Prev by Date: ...
    (microsoft.public.access.externaldata)