diff --git a/Ringhel.Procesio.Action.Core/ActionDecorators/FEDecoratorAttribute.cs b/Ringhel.Procesio.Action.Core/ActionDecorators/FEDecoratorAttribute.cs
index af883b4..4613560 100644
--- a/Ringhel.Procesio.Action.Core/ActionDecorators/FEDecoratorAttribute.cs
+++ b/Ringhel.Procesio.Action.Core/ActionDecorators/FEDecoratorAttribute.cs
@@ -42,6 +42,11 @@ public class FEDecoratorAttribute : Attribute
///
public FeComponentType Type { get; set; }
+ ///
+ /// Set different text formats: SQL, JSON, PLAINTEXT, etc.
+ ///
+ public FeTextFormat TextFormat { get; set; } = FeTextFormat.PLAINTEXT;
+
///
/// Property Row number. Used when showing the property in the Action configuration panel.
/// If not set, all properties will be placed on the same default row.
diff --git a/Ringhel.Procesio.Action.Core/Models/Credentials/DB/DBCredentialsConfiguration.cs b/Ringhel.Procesio.Action.Core/Models/Credentials/DB/DBCredentialsConfiguration.cs
index 89e9dc0..a96b769 100644
--- a/Ringhel.Procesio.Action.Core/Models/Credentials/DB/DBCredentialsConfiguration.cs
+++ b/Ringhel.Procesio.Action.Core/Models/Credentials/DB/DBCredentialsConfiguration.cs
@@ -1,6 +1,17 @@
-namespace Ringhel.Procesio.Action.Core.Models.Credentials.DB
+namespace Ringhel.Procesio.Action.Core.Models
{
- public class DBCredentialsConfiguration
+ public class DbCredentialsConfiguration
{
+ public string ServerName { get; set; }
+ public DbClientType ServerType { get; set; }
+ public DbProtocolType ProtocolType { get; set; }
+ public int? PortNumber { get; set; }
+ public DbAuthenticationType AuthenticationType { get; set; }
+ public bool? Encrypt { get; set; }
+ public bool? Pooling { get; set; }
+ public bool? TrustServerCertificate { get; set; }
+ public string DatabaseName { get; set; }
+ public string Username { get; set; }
+ public string Password { get; set; }
}
}
diff --git a/Ringhel.Procesio.Action.Core/Models/Credentials/DB/DBCredentialsManager.cs b/Ringhel.Procesio.Action.Core/Models/Credentials/DB/DBCredentialsManager.cs
index 3e879f8..c1f2071 100644
--- a/Ringhel.Procesio.Action.Core/Models/Credentials/DB/DBCredentialsManager.cs
+++ b/Ringhel.Procesio.Action.Core/Models/Credentials/DB/DBCredentialsManager.cs
@@ -1,11 +1,11 @@
using System.Data.Common;
-namespace Ringhel.Procesio.Action.Core.Models.Credentials.DB
+namespace Ringhel.Procesio.Action.Core.Models
{
- public class DBCredentialsManager
+ public class DbCredentialsManager
{
- public DBCredentialsConfiguration CredentialsConfiguration { get; set; }
+ public DbCredentialsConfiguration CredentialsConfiguration { get; set; }
- public DbConnection Client { get; set; }
+ public IDbClient Client { get; set; }
}
}
diff --git a/Ringhel.Procesio.Action.Core/Models/Credentials/DB/DbAuthenticationType.cs b/Ringhel.Procesio.Action.Core/Models/Credentials/DB/DbAuthenticationType.cs
new file mode 100644
index 0000000..097aee0
--- /dev/null
+++ b/Ringhel.Procesio.Action.Core/Models/Credentials/DB/DbAuthenticationType.cs
@@ -0,0 +1,7 @@
+namespace Ringhel.Procesio.Action.Core.Models
+{
+ public enum DbAuthenticationType
+ {
+ CredentialsAuthentication = 1
+ }
+}
diff --git a/Ringhel.Procesio.Action.Core/Models/Credentials/DB/DbClientType.cs b/Ringhel.Procesio.Action.Core/Models/Credentials/DB/DbClientType.cs
new file mode 100644
index 0000000..a1d0d7f
--- /dev/null
+++ b/Ringhel.Procesio.Action.Core/Models/Credentials/DB/DbClientType.cs
@@ -0,0 +1,7 @@
+namespace Ringhel.Procesio.Action.Core.Models
+{
+ public enum DbClientType
+ {
+ MSSQL = 1
+ }
+}
diff --git a/Ringhel.Procesio.Action.Core/Models/Credentials/DB/DbProtocolType.cs b/Ringhel.Procesio.Action.Core/Models/Credentials/DB/DbProtocolType.cs
new file mode 100644
index 0000000..71b01c2
--- /dev/null
+++ b/Ringhel.Procesio.Action.Core/Models/Credentials/DB/DbProtocolType.cs
@@ -0,0 +1,10 @@
+namespace Ringhel.Procesio.Action.Core.Models
+{
+ public enum DbProtocolType
+ {
+ NONE = 1,
+ TCP = 2,
+ LPC = 3,
+ NP = 4
+ }
+}
diff --git a/Ringhel.Procesio.Action.Core/Models/Credentials/DB/IDbClient.cs b/Ringhel.Procesio.Action.Core/Models/Credentials/DB/IDbClient.cs
new file mode 100644
index 0000000..d43aefa
--- /dev/null
+++ b/Ringhel.Procesio.Action.Core/Models/Credentials/DB/IDbClient.cs
@@ -0,0 +1,20 @@
+using System.Data;
+using System.Threading.Tasks;
+
+namespace Ringhel.Procesio.Action.Core.Models
+{
+ public interface IDbClient
+ {
+ ///
+ /// Execute a query that will return a list
+ ///
+ Task ExecuteQuery(string dbQuery);
+
+ ///
+ /// Execute a command that will return an int
+ /// Examples: COUNT, INSERT, UPDATE, ...
+ ///
+ ///
+ Task ExecuteCommand(string dbQuery);
+ }
+}
\ No newline at end of file
diff --git a/Ringhel.Procesio.Action.Core/Ringhel.Procesio.Action.Core.csproj b/Ringhel.Procesio.Action.Core/Ringhel.Procesio.Action.Core.csproj
index df4983a..de29825 100644
--- a/Ringhel.Procesio.Action.Core/Ringhel.Procesio.Action.Core.csproj
+++ b/Ringhel.Procesio.Action.Core/Ringhel.Procesio.Action.Core.csproj
@@ -7,7 +7,7 @@
Ringhel
Procesio
https://github.com/PROCESIO/Action-Core.git
- 1.16.0.4
+ 1.16.1.1
Ringhel.Procesio.Action.Core
Ringhel.Procesio.Action.Core
Ringhel.Procesio.Action.Core
diff --git a/Ringhel.Procesio.Action.Core/Utils/FeTextFormat.cs b/Ringhel.Procesio.Action.Core/Utils/FeTextFormat.cs
new file mode 100644
index 0000000..99569f1
--- /dev/null
+++ b/Ringhel.Procesio.Action.Core/Utils/FeTextFormat.cs
@@ -0,0 +1,10 @@
+namespace Ringhel.Procesio.Action.Core.Utils
+{
+ public enum FeTextFormat
+ {
+ NONE = 0,
+ PLAINTEXT = 1,
+ JSON = 2,
+ SQL = 3
+ }
+}
\ No newline at end of file