Private Function ViewPropertyCast(ByVal type As String) As String
Select Case type
Case "smallint"
Return "Short"
Case "nvarchar"
Return "String"
Case "int"
Return "Integer"
Case "float"
Return "Double"
Case "datetime"
Return "Date"
Case "bigint"
Return "Long"
Case "ntext"
Return "String"
Case "bit"
Return "Boolean"
Case "uniqueidentifier"
Return "Guid"
End Select
End Function
爲什麼ViewPropertyCast
不能在所有代碼路徑返回一個值?