Codeer.LowCode.Blazor.Connectors.NetSuite 0.1.0

dotnet add package Codeer.LowCode.Blazor.Connectors.NetSuite --version 0.1.0
                    
NuGet\Install-Package Codeer.LowCode.Blazor.Connectors.NetSuite -Version 0.1.0
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Codeer.LowCode.Blazor.Connectors.NetSuite" Version="0.1.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Codeer.LowCode.Blazor.Connectors.NetSuite" Version="0.1.0" />
                    
Directory.Packages.props
<PackageReference Include="Codeer.LowCode.Blazor.Connectors.NetSuite" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Codeer.LowCode.Blazor.Connectors.NetSuite --version 0.1.0
                    
#r "nuget: Codeer.LowCode.Blazor.Connectors.NetSuite, 0.1.0"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Codeer.LowCode.Blazor.Connectors.NetSuite@0.1.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Codeer.LowCode.Blazor.Connectors.NetSuite&version=0.1.0
                    
Install as a Cake Addin
#tool nuget:?package=Codeer.LowCode.Blazor.Connectors.NetSuite&version=0.1.0
                    
Install as a Cake Tool

Codeer.LowCode.Blazor.Connectors.NetSuite

Codeer.LowCode.Blazor のモジュールを、Oracle NetSuite のレコードに結び付けるコネクターです。

NetSuite をデータソースの 1 つとして登録すると、DB のテーブルと同じ手順でレコードからモジュールを作れます。 一覧・検索・詳細・保存といったいつもの操作が、そのまま NetSuite の読み書きになります。

  • 一覧・検索は SuiteQL、作成・更新・削除は REST のレコード操作
  • 認証は OAuth 2.0 Client Credentials (証明書を使う M2M)
  • NetSuite 側へのスクリプトの配備や、外部の接続ドライバーは不要

この版は NetSuite の実アカウントでの動作確認がまだ済んでいません。検証用のアカウントで動作を確かめてから使ってください。

使い方

アプリ (サーバー) に Codeer.LowCode.Blazor.Connectors.NetSuite.Server、デザイナに Codeer.LowCode.Blazor.Connectors.NetSuite.Designer を追加します。

データソースに NetSuite の接続を書き、

{
  "Name": "NetSuite",
  "DataSourceType": "Connector",
  "ConnectionString": "Provider=NetSuite;ServiceUrl=https://1234567.suitetalk.api.netsuite.com;ClientId=...;CertificateId=...;PrivateKeyPath=C:\\keys\\netsuite.pem"
}

アプリとデザイナの DbAccessor の Connectors に、NetSuite のコネクター (NetSuiteConnector) を渡します。

//アプリ (サーバー)
//レコードの定義は、デザイナの Tools > NetSuite のメタ情報を更新 でデザインに保存したファイル (デザインと一緒に配られる) から読む
var metadataFile = NetSuiteMetadataFile.FromDeployedDesign(designFileDirectory);
var dbAccess = new DbAccessor(dataSources)
{
    Connectors = NetSuiteConnection.FromDataSources(dataSources).Select(e => new NetSuiteConnector(e, metadataFile)).ToArray(),
};

//デザイナ (開いているプロジェクトのメタ情報のファイルから読む)
var dbAccess = new DbAccessor(dataSources) { Connectors = NetSuiteDesignerInitializer.CreateConnectors(dataSources) };

NetSuite の従業員をアプリのユーザーにするときは、ログイン (Extras の LoginAccountStore など) にもこの DbAccessor を渡します。

取引の添付ファイル

受注などの取引に付いたファイルの一覧・ダウンロード・追加・外すを、画面のフィールド「NetSuite の添付ファイル」で扱えます。 画面 (Client) に Codeer.LowCode.Blazor.Connectors.NetSuite を追加し、アプリの 3 か所を結線します。

//1. 起動時 (クライアントとサーバーの両方。デザインを読む前)
NetSuiteFieldsInitializer.Initialize();

//2. コネクターを渡した DbAccessor をコントローラーから使えるようにする (例: DataService のプロパティ)
//3. ダウンロードの口 (NetSuiteAttachmentsFieldDesign.DownloadUrl) を置く。読めるかの判定は GetAttachmentAsync が持つ
var file = await NetSuiteAttachments.GetAttachmentAsync(dbAccess, moduleDataIO, designData, module, id, field, fileId);

一覧には、ファイルの列を持つ保存検索を NetSuite に 1 つ作って接続文字列に書きます。保存検索が無ければ、ファイルを足すことだけができます。 手順と制限は Docs/NetSuite.md の「取引の添付ファイル」にあります。

取引の添付ファイルは、実環境の NetSuite では未検証です (公開資料をもとに実装し、検証用のモックで確認しています)。

設定の項目・モジュールの作り方・動きと制限は Docs/NetSuite.md にあります。

NetSuite のアカウントが無くても、手元で動くモック (dotnet run --project Source/NetSuite.Mock) にアプリとデザイナをつないで試せます。使い方と、実物と違う点は Docs/NetSuiteMock.md にあります。

コネクターを組み込んだ Web アプリとデザインのサンプルが Source/Example にあります。モックにつないで動かす手順は Docs/Example.md にあります。

ライセンス

MIT

Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on Codeer.LowCode.Blazor.Connectors.NetSuite:

Package Downloads
Codeer.LowCode.Blazor.Connectors.NetSuite.Designer

Designer support for Codeer.LowCode.Blazor.Connectors.NetSuite.Server.Registers the specification document that AI assistants read when designing modules bound to NetSuite records.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.1.0 0 12/2/2026

Initial release.