Class SybaseDBHelper
Hilft bei der Ausführung von SQL Statements
Inheritance
Inherited Members
Namespace: Simplic.Framework.DAL.ORM.Sybase
Assembly: Simplic.Framework.DAL.dll
Syntax
public static class SybaseDBHelper
Methods
| Improve this Doc View SourceExecuteProcedure(String, String, Object[])
Führt eine Prozedur ohne Ergebnismenge aus
Declaration
public static void ExecuteProcedure(string connectionStringName, string procName, params object[] parameter)
Parameters
Type | Name | Description |
---|---|---|
System.String | connectionStringName | |
System.String | procName | |
System.Object[] | parameter |
ExecuteProcedureWithResult_IDataReader(String, String, out SAConnection, Object[])
Führt eine Prozedur mit angegebenen Parametern aus Rückgabe ist ein IDataReader Diese Methode wurde aus Kompatibilitätsgründen zum alten Zugriffsserver erstellt, da einige Programme, insbesondere das WebPortal ihre INfoklassen per IDataReader befüllen
Declaration
public static IDataReader ExecuteProcedureWithResult_IDataReader(string connectionString, string procName, out SAConnection con, params object[] parameter)
Parameters
Type | Name | Description |
---|---|---|
System.String | connectionString | |
System.String | procName | |
SAConnection | con | SA Connection wird als out zurückgegeben, damit man die Verbindung im aufrufenden Code selbst beenden kann |
System.Object[] | parameter |
Returns
Type | Description |
---|---|
System.Data.IDataReader |
ExecuteSQL(String, String, Object[])
Führt SQL aus, Parameter werden mittels ? im SQL Statement angegeben
Declaration
public static void ExecuteSQL(string connectionStringName, string sql, params object[] parms)
Parameters
Type | Name | Description |
---|---|---|
System.String | connectionStringName | |
System.String | sql | |
System.Object[] | parms |
GetFunctionResult(String, String, Object[])
Gibt das ERgebnis einer SQL Function zurück
Declaration
public static object GetFunctionResult(string connectionStringName, string functionName, params object[] parms)
Parameters
Type | Name | Description |
---|---|---|
System.String | connectionStringName | ConnectionString |
System.String | functionName | Der Funktionsname |
System.Object[] | parms |
Returns
Type | Description |
---|---|
System.Object |
GetIdentity(SybaseBase)
Gibt für den angegebenen Typ eine neue ID per Get_Identity zurück. Funktioniert nur, wenn der PK aus einem Schlüssel besteht, welcher mittels GET_IDENTITY geholt werden kann
Declaration
public static int GetIdentity(SybaseBase obj)
Parameters
Type | Name | Description |
---|---|---|
SybaseBase | obj |
Returns
Type | Description |
---|---|
System.Int32 |
GetIdentity(String, String, String)
Gibt für den angegebenen Typ eine neue ID per Get_Identity zurück. Funktioniert nur, wenn der PK aus einem Schlüssel besteht, welcher mittels GET_IDENTITY geholt werden kann
Declaration
public static int GetIdentity(string connectionStringName, string tablename, string tableOwner = "admin")
Parameters
Type | Name | Description |
---|---|---|
System.String | connectionStringName | |
System.String | tablename | |
System.String | tableOwner |
Returns
Type | Description |
---|---|
System.Int32 |
GetSingleValueFromProcedure(String, String, Object[])
Gibt ein Ergebnis einer Prozedur zurück
Declaration
public static object GetSingleValueFromProcedure(string connectionString, string proc_name, params object[] parms)
Parameters
Type | Name | Description |
---|---|---|
System.String | connectionString | ConnectionString |
System.String | proc_name | Prozedurname |
System.Object[] | parms |
Returns
Type | Description |
---|---|
System.Object |