Class StackHelper
Stellt diverse Hilfsfunktionen zum Umgang mit Ablagen zur Verfügung
Inheritance
Inherited Members
Namespace: Simplic.Framework.Extension
Assembly: Simplic.Framework.Extension.dll
Syntax
public class StackHelper
Properties
| Improve this Doc View SourceSingleton
Declaration
public static StackHelper Singleton { get; }
Property Value
Type | Description |
---|---|
StackHelper |
Methods
| Improve this Doc View SourceAddonTableExists(String)
Return true, if an addon-table exists
Declaration
public bool AddonTableExists(string stackName)
Parameters
Type | Name | Description |
---|---|---|
System.String | stackName | Name of the stack |
Returns
Type | Description |
---|---|
System.Boolean | True an Addon-Table exists |
GetInstanceDataColumns(Guid, Boolean)
Get a list of all instance data columns by the connected stack
Declaration
public IDictionary<string, InstanceDataColumn> GetInstanceDataColumns(Guid stackGuid, bool containDefaultProperties = false)
Parameters
Type | Name | Description |
---|---|---|
System.Guid | stackGuid | Unique id (guid) of the stack |
System.Boolean | containDefaultProperties | Defines, wether the returned columns list contains the following columns: guid, mndident, datasourceid, dccstatus, hashvalue |
Returns
Type | Description |
---|---|
System.Collections.Generic.IDictionary<System.String, InstanceDataColumn> | Dictionary of columns, the key of the dictionary is the column name in lower letters |
GetInstanceDataContent(Guid, Guid)
Get the content of the instancedata as string
Declaration
public string GetInstanceDataContent(Guid StackGuid, Guid InstanceDataGuid)
Parameters
Type | Name | Description |
---|---|---|
System.Guid | StackGuid | Guid of the stack |
System.Guid | InstanceDataGuid | Guid of the instancedata |
Returns
Type | Description |
---|---|
System.String | All values of the instancedata as string |
GetInstanceDataHeader(Guid, Guid)
Returns the Headline of the instancedata
Declaration
public string GetInstanceDataHeader(Guid StackGuid, Guid InstanceDataGuid)
Parameters
Type | Name | Description |
---|---|---|
System.Guid | StackGuid | Guid of the stack |
System.Guid | InstanceDataGuid | Guid of the instancedata |
Returns
Type | Description |
---|---|
System.String | Returns the Headline of the instancedata as string |
GetStackGuidByName(String)
Gibt die Guid einer Ablage anhand des Ablagennamen wieder
Declaration
public Guid GetStackGuidByName(string StackName)
Parameters
Type | Name | Description |
---|---|---|
System.String | StackName | Name der Ablage (intern) |
Returns
Type | Description |
---|---|
System.Guid | Wenn eine Ablage Gefunden wurde, die Guid der Ablage ansonsten eine leere Guid |
GetStackNameByGuid(Guid)
Gibt den Namen einer Ablage anhand der Ablagenguid wieder
Declaration
public string GetStackNameByGuid(Guid StackGuid)
Parameters
Type | Name | Description |
---|---|---|
System.Guid | StackGuid | Guid der Ablage |
Returns
Type | Description |
---|---|
System.String | Interner Name der Ablage |
GetTableName(Guid, String)
Gibt den Namen der Ablagentabelle zurück
Declaration
public string GetTableName(Guid StackGuid, string ConnectionStringName = "")
Parameters
Type | Name | Description |
---|---|---|
System.Guid | StackGuid | Guid der Ablage |
System.String | ConnectionStringName | Verbindungszeichenfolgenname |
Returns
Type | Description |
---|---|
System.String | Tabellenname, wurde keine Tabelle geunfden wird ein Leerstring zurück gegeben |
IsStackExisting(Guid)
Überprüft, ob eine Ablage mit der angegeben Guid existiert
Declaration
public bool IsStackExisting(Guid StackGuid)
Parameters
Type | Name | Description |
---|---|---|
System.Guid | StackGuid | Guid der Ablage |
Returns
Type | Description |
---|---|
System.Boolean | True wenn die Ablage existiert, False wenn nicht |
RenameStackTable(Guid, String)
Bennen eine Ablagentabelle um
Declaration
public void RenameStackTable(Guid StackGuid, string NewTableName)
Parameters
Type | Name | Description |
---|---|---|
System.Guid | StackGuid | Guid der Ablage |
System.String | NewTableName | Neuer Tabellenname |