FSharp.Data.TypeProviders


The ODataService Type Provider (FSharp.Data.TypeProviders)

Please see Walkthrough: Accessing an OData Service by Using Type Providers

NOTE: Use FSharp.Data.TypeProviders instead of Microsoft.FSharp.Data.TypeProviders

Reference

Please see the MSDN Documentation

Example

Please see Walkthrough: Accessing an OData Service by Using Type Providers

See also below for a micro use of the type provider:

1: 
2: 
3: 
4: 
5: 
6: 
7: 
8: 
9: 
#r "FSharp.Data.TypeProviders.dll"
open FSharp.Data.TypeProviders

type OData1= ODataService< @"http://services.odata.org/V2/OData/OData.svc/">

type ST = OData1.ServiceTypes
type Address = OData1.ServiceTypes.Address
module M = 
    let ctx = OData1.GetDataContext()
Multiple items
namespace FSharp

--------------------
namespace Microsoft.FSharp
Multiple items
namespace FSharp.Data

--------------------
namespace Microsoft.FSharp.Data
namespace FSharp.Data.TypeProviders
type OData1 =
  static member GetDataContext : unit -> DemoService + 1 overload
  nested type ServiceTypes

Full name: Odata.OData1


<summary>Provides the types to access an OData service</summary><param name="ServiceUri">The Uri for the OData service</param><param name='LocalSchemaFile'>The local .csdl file for the service schema</param><param name='ForceUpdate'>Require that a direct connection to the service be available at design-time and force the refresh of the local schema file (default: true)</param><param name='ResolutionFolder'>The folder used to resolve relative file paths at compile-time (default: folder containing the project or script)</param><param name='DataServiceCollection'>Generate collections derived from DataServiceCollection (default: false)</param>
type ODataService

Full name: FSharp.Data.TypeProviders.ODataService


<summary>Provides the types to access an OData service</summary><param name="ServiceUri">The Uri for the OData service</param><param name='LocalSchemaFile'>The local .csdl file for the service schema</param><param name='ForceUpdate'>Require that a direct connection to the service be available at design-time and force the refresh of the local schema file (default: true)</param><param name='ResolutionFolder'>The folder used to resolve relative file paths at compile-time (default: folder containing the project or script)</param><param name='DataServiceCollection'>Generate collections derived from DataServiceCollection (default: false)</param>
type ST = OData1.ServiceTypes

Full name: Odata.ST
type ServiceTypes =
  nested type Address
  nested type Category
  nested type DemoService
  nested type Product
  nested type SimpleDataContextTypes
  nested type Supplier

Full name: Odata.OData1.ServiceTypes


<summary><para>The full API to the OData Service.</para><para>To use the service via the full API, create an instance of one of the types 'DemoService'.</para><para>You may need to set the Credentials property on the instance.</para></summary>
type Address = OData1.ServiceTypes.Address

Full name: Odata.Address
type Address =
  new : unit -> Address
  member City : string with get, set
  member Country : string with get, set
  member State : string with get, set
  member Street : string with get, set
  member ZipCode : string with get, set

Full name: Odata.OData1.ServiceTypes.Address
module M

from Odata
val ctx : OData1.ServiceTypes.SimpleDataContextTypes.DemoService

Full name: Odata.M.ctx
OData1.GetDataContext() : OData1.ServiceTypes.SimpleDataContextTypes.DemoService


Get a simplified data context for this OData Service. By default, no credentials are set

OData1.GetDataContext(uri: System.Uri) : OData1.ServiceTypes.SimpleDataContextTypes.DemoService


Get a simplified data context for this OData Service. By default, no credentials are set
Fork me on GitHub