0

2 つのコレクションがあり、値を取得するには結合を行う必要がありますが、試してみるとエラーが発生しました。

//コード:

 Dim ExclusiveComment As ExclusiveComments = Nothing

ExclusiveComment = From ExclusiveCommentLinq In Me.ExclusiveCommentsCollection
                   Join ExistingCommentsLinq In Me.CombinedExclusiveCommentsCollection On      ExclusiveCommentLinq.CommentDescription Equals ExistingCommentsLinq(0)
                   Select ExclusiveCommentLinq

上記のコードでは、

ExclusiveCommentsCollection= クラスのコレクション(ExclusiveComments) CombinedExclusiveCommentsCollection= 通常の文字列コレクション(単一カラム)

両方のコレクションには共通の列 " CommentDescription" があり、そこから値を取得する必要がありますExclusiveCommentsCollection

私が間違っている場所とこれを達成する方法を教えてもらえますか?

エラー:

オプション strict on は、'System.collections.generic.ienumarable(Of ExclusiveComments to ExclusiveComments) からの暗黙的な変換を禁止します

4

1 に答える 1