Before you begin

This is an F# language class. To complete the coding exercises, you will need a Xamarin development environment with either a simulator/emulator or a device to run the exercise on. Please read the setup requirements if you need help installing the Xamarin development environment.

Overview

During this course we cover the basics of using type providers in F#. Including defining what a type provider is, illustrating how to connect to them, and ultimately how to transform data from a type provider.

Lecture

FSC105 - Type Providers

Objectives

  1. Connect to data sources with type providers
  2. Query and transform data from type providers

Exercises

Exercise materials are available from GitHub. The code can be cloned through a desktop Git client or downloaded directly as a ZIP file.

  1. Connecting to the JSON type provider
    Exercise
    In this exercise, we will use the F# Data package to connect to a remote REST Service using the JSON type provider and display information about the weather in a nearby city
  2. Connecting to the World Bank type provider
    Exercise
    In this exercise, we will use the F# DATA package to connect to the World Bank type provider and find the two countries, which, in 2010 had the lowest and highest values for the "Income share held by highest 10%" indicator.

Exploring On Your Own

Here are some additional online resources for further study.

Type Providers

F# Data Library Type Providers in F# (MSDN) F# 3.0 - Strongly-Typed Language Support for Internet-Scale Information Sources Twelve F# type providers in action (Blog)

Query Expressions

Query Expressions and operators in F# (MSDN)