DynamicsCRMProvider


DynamicsCRMProvider

The DynamicsCRMProvider is a F# type provider which allows to access Microsoft Dynamics CRM data in a strongly typed way.

The library can be installed from NuGet:
PM> Install-Package DynamicsCRMProvider

You can read more about it at the F# team blog.

Example

This example demonstrates the use of the type provider from a F# script file:

 1: 
 2: 
 3: 
 4: 
 5: 
 6: 
 7: 
 8: 
 9: 
10: 
11: 
12: 
13: 
14: 
15: 
16: 
17: 
// load the type provider dependencies
#load @"..\packages\DynamicsCRMProvider\DynamicsCRMProvider.fsx"

open System
open System.Linq
open FSharp.Data.TypeProviders

// configure the Dynamics CRM type provider
let xrm = XrmDataProvider<"http://server/org/XRMServices/2011/Organization.svc">.GetDataContext()
let accounts = xrm.accountSet |> Seq.toList

// now you have typed access to Dynamics CRM

let accounts = 
    query { for a in xrm.accountSet do 
            where (a.name.Contains "Contoso") 
            select a } |> Seq.toList

Contributing and copyright

The project is hosted on GitHub where you can report issues, fork the project and submit pull requests. If you're adding new public API, please also consider adding samples that can be turned into a documentation. You might also want to read library design notes to understand how it works.

The library is available under Public Domain license, which allows modification and redistribution for both commercial and non-commercial purposes. For more information see the License file in the GitHub repository.

namespace System
namespace System.Linq
Multiple items
namespace System.Data

--------------------
namespace Microsoft.FSharp.Data
val xrm : obj

Full name: Index.xrm
val accounts : obj list

Full name: Index.accounts
module Seq

from Microsoft.FSharp.Collections
val toList : source:seq<'T> -> 'T list

Full name: Microsoft.FSharp.Collections.Seq.toList
val query : Linq.QueryBuilder

Full name: Microsoft.FSharp.Core.ExtraTopLevelOperators.query
val a : obj
custom operation: where (bool)

Calls Linq.QueryBuilder.Where
custom operation: select ('Result)

Calls Linq.QueryBuilder.Select
Fork me on GitHub