28 lines
656 B
C#
28 lines
656 B
C#
using Sap.Data.Hana;
|
|
using System.Data;
|
|
|
|
namespace Net.Data.HelperData
|
|
{
|
|
public class HelperDB
|
|
{
|
|
public static void SET(string query)
|
|
{
|
|
using (HanaConnection con = new HanaConnection(LocalData.ConnectionString))
|
|
{
|
|
con.Open();
|
|
HanaCommand cmd = new HanaCommand
|
|
{
|
|
CommandText = query,
|
|
Connection = con,
|
|
CommandType = CommandType.Text
|
|
};
|
|
cmd.ExecuteNonQuery();
|
|
|
|
con.Close();
|
|
}
|
|
}
|
|
|
|
|
|
}
|
|
}
|