宣言は次のとおりです。
Public Class Client
Public Property Address() As String
Get
Return mAddress
End Get
Set(ByVal value As String)
mAddress = value
End Set
End Property
Public Property City() As String
Get
Return mCity
End Get
Set(ByVal value As String)
mCity = value
End Set
End Property
end sub
エラーはここにあります:
Public Function InsertClientRecordToDb(ByVal cli As Client) As Boolean
Dim retVal As Boolean
Dim dataSet As DataSet = New DataSet("dataSet")
dataSet.EnforceConstraints = False
'create table adapter object
Dim ClientTblAdapter As New CaseStudyDBDataSetTableAdapters.Client_TableTableAdapter
'check db connection
If ClientTblAdapter.Connection.State = ConnectionState.Closed Then
ClientTblAdapter.Connection.Open()
End If
'perform(insert)
If ClientTblAdapter.InsertClientRecord(cli.Clientcode, cli.Clientname, cli.Address, cli.City, cli.Contactperson, cli.Contactnumber) > 0 Then
retVal = True
End If**
Return retVal
End Function
「cli.Address」と「cli.City」には次のように下線が引かれています。
String 型の値は Byte の 1 次元配列に変換できません
問題に見えるのは?