ServiceLayerFluentMigrator 2.1.0
dotnet add package ServiceLayerFluentMigrator --version 2.1.0
NuGet\Install-Package ServiceLayerFluentMigrator -Version 2.1.0
<PackageReference Include="ServiceLayerFluentMigrator" Version="2.1.0" />
<PackageVersion Include="ServiceLayerFluentMigrator" Version="2.1.0" />
<PackageReference Include="ServiceLayerFluentMigrator" />
paket add ServiceLayerFluentMigrator --version 2.1.0
#r "nuget: ServiceLayerFluentMigrator, 2.1.0"
#:package ServiceLayerFluentMigrator@2.1.0
#addin nuget:?package=ServiceLayerFluentMigrator&version=2.1.0
#tool nuget:?package=ServiceLayerFluentMigrator&version=2.1.0
ServiceLayerFluentMigrator
A simple way to create schema in SAP Business One by Service Layer
A lightweight creator schema in SAP Business One Service Layer for .NET
ServiceLayerFluentMigrator privde:
- Fluent table creator
- Automatic session management
- Easy way to request Service Layer
How to use it
using ServiceLayerFluentMigrator;
using ServiceLayerFluentMigrator.FluentMigrator;
using System;
namespace ConsoleAppCreatingTableInSAP
{
[Migration(1)]
public class MyTableMigrator : SLMigration
{
public override void Up()
{
this.FluentSchema
.CreateTable("MyTable",
ServiceLayerFluentMigrator.Models.BoUTBTableType.bott_Document,
"My table in SAP")
.CreateColumn("Code").AsNumeric(11)
.CreateColumn("Name").AsAlpha(120)
.CreateColumn("Value").AsFloat();
}
public override void Down()
{
throw new NotImplementedException();
}
}
}
class Program
{
static void Main(string[] args)
{
Console.WriteLine("Creating table in SAP via Service Layer!");
var runner = new MigrationRunner("https://192.168.1.22:50000/b1s/v1",
"SBO_Test", "manager", "sap@123");
runner.Upgrade();
Console.WriteLine("Migration is done!");
}
}
Prerequisites / troubleshooting
1 - Enable semantic layer view (Page 56 in document: https://help.sap.com/doc/0d2533ad95ba4ad7a702e83570a21c32/9.3/en-US/Working_with_SAP_Business_One_Service_Layer.pdf)
2 - Open the SAP Business One analytics home page. (The URL is basically like: https://hanaserver:40000/Enablement/)
3 - Navigate to the Company tab
4 - Click the Initialize button to start the initialization process.
5 - After conclusion... run your migrations!
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. 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. |
.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
- B1SLayer (>= 2.1.2)
- Microsoft.Extensions.DependencyInjection (>= 8.0.1)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 8.0.2)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last Updated |
---|---|---|
2.1.0 | 0 | 9/2/2025 |
1.1.0 | 318 | 6/12/2024 |
1.0.11.2 | 449 | 12/6/2023 |
1.0.11 | 178 | 12/6/2023 |
1.0.10 | 864 | 7/11/2022 |
1.0.9 | 511 | 7/1/2022 |
1.0.8 | 532 | 6/9/2022 |
1.0.7 | 524 | 6/4/2022 |
1.0.6 | 622 | 6/8/2021 |
1.0.5 | 404 | 6/8/2021 |
1.0.4 | 466 | 5/5/2021 |
1.0.3 | 461 | 5/1/2021 |
1.0.2 | 440 | 4/25/2021 |
1.0.1 | 438 | 4/24/2021 |
1.0.0 | 452 | 4/24/2021 |