hi i want to make condition statement in my function. i use this method :
If String.ReferenceEquals(hotel, hotel) = true Then
insertDatabase()
Else
updateDatabase()
End If
if i try to insert a data already in the database, the function will directly go to the updateDatabase()..
the problem is, if i try to insert the data that currently not in the database, the function will directly go to update database as well..
maybe the method i use is not suitable. can anyone help?..im using vb.net and sql..