Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/fsharp/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
F# F“查询表达式”;字段、构造函数或成员';包含';“未定义”;_F#_Query Expressions - Fatal编程技术网

F# F“查询表达式”;字段、构造函数或成员';包含';“未定义”;

F# F“查询表达式”;字段、构造函数或成员';包含';“未定义”;,f#,query-expressions,F#,Query Expressions,我试图让这个例子从查询表达式页面开始工作。我已经完成了数据库的设置,并编写了许多小代码 let idQuery = query { for id in [1; 2; 5; 10] do select id } query { for student in db.Student do where (idQuery.Contains(student.StudentID)) select student

我试图让这个例子从查询表达式页面开始工作。我已经完成了数据库的设置,并编写了许多小代码

    let idQuery = query { for id in [1; 2; 5; 10] do
                  select id }

    query { 
       for student in db.Student do
       where (idQuery.Contains(student.StudentID))
       select student
    }
但我得到的只是一个错误:

未定义字段、构造函数或成员“Contains”


我错过了什么?我还有其他示例要处理。

我需要导入
System.Linq
名称空间。

不要删除。只要接受你自己的问题,当你可以(可能3天)。