Primo.Database.SqlServer.Core 1.0.2

dotnet add package Primo.Database.SqlServer.Core --version 1.0.2
                    
NuGet\Install-Package Primo.Database.SqlServer.Core -Version 1.0.2
                    
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="Primo.Database.SqlServer.Core" Version="1.0.2" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Primo.Database.SqlServer.Core" Version="1.0.2" />
                    
Directory.Packages.props
<PackageReference Include="Primo.Database.SqlServer.Core" />
                    
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 Primo.Database.SqlServer.Core --version 1.0.2
                    
#r "nuget: Primo.Database.SqlServer.Core, 1.0.2"
                    
#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 Primo.Database.SqlServer.Core@1.0.2
                    
#: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=Primo.Database.SqlServer.Core&version=1.0.2
                    
Install as a Cake Addin
#tool nuget:?package=Primo.Database.SqlServer.Core&version=1.0.2
                    
Install as a Cake Tool

About

The package contains elements of interaction with MS SQL Server database for designing (both UI and coded) automation programs in Primo RPA studio, and then executing them by the Primo RPA robot.

How to Use

In Primo RPA studio, create a project that will be executed by Primo RPA robot. Install this package via the ".Dependencies → Manage Dependencies" menu; the "Detabase → SQL Server" node with package elements will appear in Elements tree .
There are four elements in the package: "Connect (SQL Server)", "Execute Query (SQL Server)", "Insert (SQL Server)", "Disconnect DB (SAP HANA)". "Connect (SQL Server)" is the main one, because it is not possible to interact with any DB without connecting. It is highly recommended to use the "Disconnect DB (SQL Server)" element after interacting with the database to free up external resources.
In pure code projects use the "Connect (SQL Server)" element as follows:

//wf: [LTools.Common.Model.WorkflowData] parent algorithm link
//db - Connection string: [String] Database connection string (SERVER=<hostname>:<port>; DATABASE=<database name>; UID=<username>;PWD=<password>)
Primo.Database.SqlServer.DatabaseApp app = Primo.Database.SqlServer.DatabaseApp.Init(wf, db);

Pure code for "Insert (SQL Server)" element:

//app - [Primo.Database.SqlServer.DatabaseApp] DB application
//query - Table: [String] Table name
//data - Data: [System.Data.DataTable] Data to insert
//timeOut - Time-out: [Int32] Query time-out
//res - Records: [Int32] Affected records
int res = app.Insert(query, data, [timeOut]);

Key Features

  • User-friendly, intuitive interface
  • High performance
  • Supports .NET 8+

Main Types

  • Primo.Database.SqlServer.DatabaseInst
  • Primo.Database.SqlServer.DatabaseApp
  • Primo.Database.SqlServer.Elements.WFConnectDatabase
  • Primo.Database.SqlServer.Elements.WFExecuteQuery
  • Primo.Database.SqlServer.Elements.WFInsert
  • Primo.Database.SqlServer.Elements.WFDisconnectDatabase

Feedback

Bug reports and contributions are welcome at Primo RPA chat

Product Compatible and additional computed target framework versions.
.NET net8.0-windows7.0 is compatible.  net9.0-windows 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.

This package has no dependencies.

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
1.0.2 164 4/9/2025