处理 Union
来源:互联网 发布:ad旋转网络标号 编辑:程序博客网 时间:2024/05/19 23:59
处理 Union
#r @"C:\Program Files\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5\System.Data.Linq.dll";;
#r @"E:\Projects\F#3\FSharp.Data.TypeProviders.dll";;
open Microsoft.FSharp.Data.TypeProviders;;
open System.Linq;;
// Count()、DefaultIfEmpty 在其中
//open System.Data.Linq;;
//open System.Data.Linq.SqlClient;
// SqlMethods 作其中
[<Generate>]
type T0 = SqlDataConnection<"Data Source=.\SQLEXPRESS;Initial Catalog=FSharpSample;User ID=sa;Password=FSharpSample1234">
let TypeProvider12() =
let db = T0.GetDataContext();
let q = query {
for s in db.Student do
select (s.Name, s.Age)
}
let q2 = query {
for s in db.Student do
select (s.Name, s.Age)
}
let q3 = q.Union (q2)
q |> Seq.iter (fun n -> printfn "%A" n)
q |> Seq.length
q3 |> Seq.iter (fun n -> printfn "%A" n)
q3 |> Seq.length
- 处理 Union
- Linq 集合处理(Union)
- Vdsp处理未命名union的BUG
- Union
- union
- union
- UNION
- union
- union
- union
- UNION
- union
- union
- Union
- union
- union
- union
- union
- Gentoo 历程(3):配置slim自动登录、mlocate导致系统僵死、lxr配置
- linux下python升级引起的问题
- 百度统计中百度收录数据改为每天更新一次的价值
- Android 内容提供器---内容提供器基础(合约类(Contract Class))
- 一. 图模型(graphical model, GM)的表示
- 处理 Union
- Android 内容提供器---内容提供器基础(MIME类型参考)
- 中间件小结——第三部分:J2EE中间件
- 未来概念笔记本是什么样? 富士通概念Lifebook笔记本图赏
- 中间件小结——第四部分:Web Service规范
- Android 内容提供器---创建内容提供器(概要)
- 中间件小结
- QT-使QSplitter分割线不能移动
- VegaPrime与GLStudio一起用时的注意事项