DBNull.Value

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

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
 
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.
 
Back
Top