-1
私はこの「System.NotSupportedException」例外をしばらく取得していますが、オプションがなくなりました。ブラウザからfindAllUsers()関数にアクセスしようとするとこのエラーが発生します。System.NotSupportedException
私はモデルクラスを持っている:
Public Class pUsers
Public Property UserId() As Long
Public Property Username() As String
Public Property Password() As String
Public Property Email() As String
Public Property Cell() As String
Public Property DateCreated() As Date
Public Property LastLogin() As DateTime
End Class
はServiceAPIserverクラスには、次のようになり機能している:デザイン時にエンティティコードにLINQを書くとき、それはそう、すべてのLINQの構文LINQ
Public Function findAllUsers() As List(Of pUsers) Implements IServiceAPIServer.findAllUsers
Using mde As New AllMyAPIEntities()
Return mde.UserEntities.[Select](Function(ue) New pUsers() With {
.UserId = ue.UserId,
.Cell = wrapper.DecryptData(ue.Cell),
.DateCreated = ue.DateCreated,
.Email = wrapper.DecryptData(ue.Email),
.LastLogin = ue.LastLogin,
.Password = ue.Password,
.Username = wrapper.DecryptData(ue.Username)}).ToList()
End Using
End Function
質問に間違ったタグが含まれているのはなぜですか? –
私は実際に何が原因でエラーが発生したのか分かりませんでした。 @ bub – kilojoules88
あなたは 'NotSupportedException'を取得しただけではなく、問題がどこにあるのかを正確に伝える' NotSupportedException'を取得しました。あなたが詳細を理解していない場合、それはよい質問になるかもしれませんが、最小限の読書と理解を試みることを気にしない場合でも、あなたのやっていることはちょうどあなたの手を投げる空気中で "waaahhhhh !!!" – hvd