DynamicsCRMProvider
The DynamicsCRMProvider is a F# type provider which allows to access Microsoft Dynamics CRM data in a strongly typed way.
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.Data
--------------------
namespace Microsoft.FSharp.Data
Full name: Index.xrm
Full name: Index.accounts
from Microsoft.FSharp.Collections
Full name: Microsoft.FSharp.Collections.Seq.toList
Full name: Microsoft.FSharp.Core.ExtraTopLevelOperators.query
Calls Linq.QueryBuilder.Where
Calls Linq.QueryBuilder.Select