製品をチェック

無償トライアル:

無償トライアルへ

製品の情報と無償トライアルへ:

Bullhorn CRM ADO.NET Provider

Bullhorn CRM データに連携する.NET アプリケーションを素早く、簡単に開発できる便利なドライバー。

データ連携でお困りですか?

お問い合わせ

LINQPad でBullhorn CRM データを操作


LINQPad でBullhorn CRM にLINQ クエリを実行します。


加藤龍彦
ウェブデベロッパー

bullhorncrm ロゴ画像

ADO.NET Adapter

ado ロゴ画像
LINQPad ロゴ画像


CData ADO.NET Provider for BullhornCRM は、LINQ やEntity Framework などの標準のADO.NET インターフェースを使ってBullhorn CRM を操作可能にします。この記事では、LINQPad から接続してLINQ クエリを実行する方法を説明します。

データモデルの作成

本製品およびLINQPad をダウンロードおよびインストールしたら、Visual Studio で新しいクラスライブラリプロジェクトを作成します。

本製品を使用するためのEF 6を設定する方法については、ヘルプドキュメントを参照してください。

  1. プロジェクトを右クリックし、[追加]→[新しい項目]→[ADO.NET Entity Data Model]をクリックします。ダイアログが表示されたら、データベースから[Code First]を選択します。 [New Connection]をクリックして、表示されたウィザードで接続文字列オプションを指定します。

    Begin by providing your Bullhorn CRM account credentials in the following:

    If you are uncertain about your data center code, codes like CLS2, CLS21, etc. are cluster IDs that are contained in a user's browser URL (address bar) once they are logged in.

    Example: https://cls21.bullhornstaffing.com/BullhornSTAFFING/MainFrame.jsp?#no-ba... indicates that the logged in user is on CLS21.

    Authenticating with OAuth

    Bullhorn CRM uses the OAuth 2.0 authentication standard. To authenticate using OAuth, create and configure a custom OAuth app. See the Help documentation for more information.

    一般的な接続文字列は次のとおりです。

    DataCenterCode=CLS33;OAuthClientId=myoauthclientid;OAuthClientSecret=myoauthclientsecret; The required connection properties in the Entity Data Model Configuration Wizard. (QuickBooks is shown.)
  2. 希望するテーブルおよびビューを選択して[Finish]をクリックし、データモデルを作成します。

    The last step of the Entity Data Model Configuration Wizard, where tables are imported into the entity model.
  3. プロジェクトをビルドします。生成されたファイルを使ってLINQPad でBullhorn CRM 接続を作成できます。

LINQPad でBullhorn CRM データに接続

必要な接続プロパティを取得してデータモデルアセンブリを作成したら、以下の手順に従ってLINQPad でデータモデルを使いはじめましょう。

  1. LINQPad を開き[接続の追加]をクリックします。

    The Add a new connection option in a new LINQPad project.
  2. [Use a typed data context from your own assembly]オプションを選択します。

  3. [Entity Framework DbContext]を選択します。

    The Choose Data Context dialog.
  4. [Path to Custom Assembly]ボックスの横にある[参照]をクリックして、プロジェクトフォルダを参照します。bin フォルダの下の.dll または.exe を参照します。

  5. DbContext の名前を選択します。
  6. 接続文字列をApp.Config に保存した場合は、App.Config へのパスを指定します。
The next step of the wizard, where the data model assembly is imported.

これでLINQPad 経由でBullhorn CRM にクエリできます。サポートされたLINQ クエリの例は、ヘルプドキュメントの「LINQ およびEntity Framework」を参照してください。

The results of a query in LINQPad. (QuickBooks is shown.)