用 OData Service 访问 U.S. Consumer Price Index
来源:互联网 发布:nginx 变量拼接 编辑:程序博客网 时间:2024/06/05 03:20
用 OData Service 访问 U.S. Consumer Price Index
// 编译命令
//"C:\Program Files\Microsoft SDKs\F#\3.0\Framework\v4.0\fsc.exe" --optimize- --tailcalls- --platform:x86 -r:"C:\Program Files\Reference Assemblies\Microsoft\FSharp\3.0\Runtime\v4.0\FSharp.Core.dll" -r:"E:\Projects\F#3\FSharp.Data.TypeProviders.dll" -r:"C:\Program Files\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5\Profile\Client\System.Core.dll" -r:"C:\Program Files\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5\Profile\Client\System.Data.Services.Client.dll" -r:"C:\Program Files\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5\Profile\Client\System.dll" --noframework TypeProviderCPI.fsx
#if INTERACTIVE
#r @"C:\Program Files\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5\System.Data.Services.Client.dll";;
#endif
open System.Data.Services.Client;;
#if INTERACTIVE
#r @"E:\Projects\F#3\FSharp.Data.TypeProviders.dll"
#endif
open Microsoft.FSharp.Data.TypeProviders;;
open System.Net;;
open System;;
[<Generate>]
type CPI = Microsoft.FSharp.Data.TypeProviders.ODataService<"https://api.datamarket.azure.com/MetricMash/USConsumerPriceIndex/">
let MetricMash ()=
let db = CPI.GetDataContext()
db.Credentials <- NetworkCredential ("MSN帐号","主帐户密钥")
let q = query {
for c in db.AllUrbanChainedConsumerPriceIndex do
where (c.DateValue < new System.DateTime(2010, 1, 1))
where (c.DateValue > new System.DateTime(2008, 12, 30))
select c
}
q |> Seq.iter ( fun n -> printfn "%A- %A" n.DateValue n.Index)
MetricMash()
- 用 OData Service 访问 U.S. Consumer Price Index
- 用 OData 访问 MetricMash - U.S. Unemployment Data
- 用 OData Service 访问 MarketBank
- 用 OData Service 访问 Demographics
- 用 OData Service 访问云数据
- 用 OData Service 访问在线法律
- 用 OData Service 访问 US Bank
- 用 OData Service 访问 US Crime 数据
- 用 OData Service 访问 China Enterprises Data
- 用 OData 访问 Utility Rate Service
- 用 OData Service 访问在线的 Northwind 数据库
- 用 OData 访问 EDR - Environmental Hazard Rank
- SAP OData Service
- sapui5 访问OData数据
- WCF Data Service 创建OData服务
- OData
- First Version Image service for Mobile App(Odata.svc)
- Price
- Android使用缓存优化ListView
- 跟随鼠标移动浮动显示大图展示的特效
- Android 的大牛的博客 提供给大家参考
- 网络 java.net
- 第13章 表单脚本 (一)
- 用 OData Service 访问 U.S. Consumer Price Index
- UID, EUID, SUID, FSUID
- 主文件系统 vs 二级文件系统 (微软篇)
- 用Intent调用系统中经常被用到的组件
- 常见设计模式描述
- Flash 架构Flex 4.6
- 使用spring 2.5 基于注解驱动的spring mvc
- test dword ptr [eax],eax ; probe page.错误
- 精妙SQL语句整理