M3H5Lib 1.0.2
dotnet add package M3H5Lib --version 1.0.2
NuGet\Install-Package M3H5Lib -Version 1.0.2
<PackageReference Include="M3H5Lib" Version="1.0.2" />
paket add M3H5Lib --version 1.0.2
#r "nuget: M3H5Lib, 1.0.2"
// Install M3H5Lib as a Cake Addin #addin nuget:?package=M3H5Lib&version=1.0.2 // Install M3H5Lib as a Cake Tool #tool nuget:?package=M3H5Lib&version=1.0.2
M3H5Lib
This library is a high level wrapper for the Infor/Lawson/M3/Movex C# .Net Standard library ERP system. It used based upon the GaryWayneSmith/ExtensibleHttp library
The resource models contained here are mostly auto-generated. Some elements might not return the expected return type, and when in doubt it returns strings. Not all applications are included as the installation of Infor didn't have full access to all modules.
If you have additional applications that need created, clone the repository, make the applicable changes, and push for review.
Example config values.
{
"m3config": {
"BasePath": "/m3api-rest/execute",
"Company": 1,
"Authorization": "Basic BASE64ENCODED(USER:PASSWORD)",
"Debug": false,
"BaseUri": "https://HOSTNAME:PORT/",
"UserAgent": "M3H5Lib",
"ApiFormat": "Json",
"RequestTimeoutMs": 100000
}
}
Example ErpConfig.cs
public class ErpConfig
{
public static async Task<M3Config> GetConfig(CancellationToken cancellationToken)
{
int port = 443;
string host = "https://erpserver.local"
string username = "username";
string password = "password";
bool useSsl = true;
M3Config config = await M3Config.GetConfig(
host: host,
port: port,
ssl: useSsl,
username: username,
password: password,
basePath: "/m3api-rest/execute",
company: 1,
cancellationToken: cancellationToken
);
return config;
}
}
Example resource call
using M3H5Lib;
using M3H5Lib.Api;
using M3H5Lib.Api.OIS100MI;
using M3H5Lib.Models;
public async Task<GetHeadResponse> GetOrderStatus(string erpNumber, CancellationToken cancellationToken)
{
M3Config config = await ErpConfig.GetConfig(cancellationToken);
ApiClient apiClient = new ApiClient(config);
OIS100MIResource resource = new OIS100MIResource(apiClient);
M3Response<GetHeadResponse> response = await resource.GetHead(
m3_CONO: config.Company,
m3_ORNO: erpNumber,
throwExceptionWithoutSuccess: true,
cancellationToken: cancellationToken);
if (!response.Success)
{
_logger.LogWarning("Failed to retreive record, {message}", response.Message);
return null;
}
return response.Rows.FirstOrDefault();
}
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. 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. |
.NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
.NET Standard | netstandard2.0 is compatible. netstandard2.1 was computed. |
.NET Framework | net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
MonoAndroid | monoandroid was computed. |
MonoMac | monomac was computed. |
MonoTouch | monotouch was computed. |
Tizen | tizen40 was computed. tizen60 was computed. |
Xamarin.iOS | xamarinios was computed. |
Xamarin.Mac | xamarinmac was computed. |
Xamarin.TVOS | xamarintvos was computed. |
Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETStandard 2.0
- ExtensibleHttp (>= 1.1.3)
- Microsoft.Extensions.Configuration.Json (>= 8.0.0)
- Microsoft.Extensions.Logging (>= 8.0.0)
- Microsoft.Extensions.Logging.Abstractions (>= 8.0.1)
- Newtonsoft.Json (>= 13.0.3)
- System.ComponentModel.Annotations (>= 5.0.0)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on M3H5Lib:
Package | Downloads |
---|---|
M3H5Lib.Api
Resources for accessing specific M3 Api endpoints using the base library |
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
1.0.2 | 147 | 6/5/2024 |