Chanjet - China Small & Medium Enterprises Management & Operation KPI Data

Category:
TypeProviders.AzureMarketPlace
Description: Chanjet provides SME operation and management KPI data based on its nationwide survey conducted among SMEs from multiple industries. For more information, please goto https://datamarket.azure.com/dataset/6bd3a6b3-2fe0-4609-ba11-959190000047
Code:
type SME = Microsoft.FSharp.Data.TypeProviders.ODataService < ServiceUri = @"https://api.datamarket.azure.com/Chanjet/ChinaSmallAndMediumEnterprises/" >

let Chanjet() =
let china = SME.ServiceTypes.ChanjetChinaSmallAndMediumEnterprisesContainer()
//To sign up for a Windows Azure Marketplace account, please go to https://datamarket.azure.com/account/info
china.Credentials<- NetworkCredential (Utils.ADM_USER_ID, Utils.ADM_ACCOUNT_ID)

query {
for b in china.GeographyInfo do
where (b.EconomicZoneId.Value = 1)
select b
} |> Seq.iter (fun i -> printfn "%A - %A" i.ProvinceNameEnglish i.ProvinceNameChinese)

// sample output
// "Shanghai" - "上海"
// "Jiangsu" - "江苏"
// "Zhejiang" - "浙江"


Execution Result:
"Shanghai" - "上海"
"Jiangsu" - "江苏"
"Zhejiang" - "浙江"

Last edited Mar 1, 2012 at 7:06 PM by ttliu2000, version 4

Comments

No comments yet.