아래 C# 버전이 작동하는 동안 아래 코드의 F # 버전을 실행할 때 오류가 발생합니다. 모든 아이디어를 linq 쿼리에서 여러 documentdb 속성을 반환하는 방법에 대한 F # 일반적으로?DocumentDb, LINQ 및 F #을 사용하여 여러 속성을 반환하는 방법?
2016-12-29T23:57:08.504 Exception while executing function: Functions.GetTags. mscorlib: Exception has been thrown by the target of an invocation. mscorlib: One or more errors occurred. Microsoft.Azure.Documents.Client: Constructor invocation is not supported.
C#을
type UserTagRecord = {topics : string list; education : string list}
let userTagsQuery =
user.Where(fun user -> user.topics <> null && user.education <> null)
.Select(fun user -> {topics=user.topics :?> string list; education=user.education :?> string list})
나는 documentDB로 아무 것도하지 않았지만 다이내믹이 약간의 도움을 줄 수 있습니까? 'FSharp.Interop.Dynamic'과'System.Linq.Dynamic'을 사용합니다. 그렇다면 또 다시, 어쩌면 ... – s952163