Exemplo n.º 1
0
 public static void Add(int dateTime, string name, string checkLine)
 {
     DBController.SQLInsert(
         "documents",
         "DateTime, CashierName, Data",
         $"{dateTime}, '{name}', '{checkLine}'");
 }
Exemplo n.º 2
0
 public static void Add(string id, string name, string accessLevel, string hash)
 {
     DBController.SQLInsert(
         "Users",
         "id, Name, AccessLevel, Hash",
         $"'{id}', '{name}', '{accessLevel}', '{hash}'");
 }
Exemplo n.º 3
0
 public static void Insert(
     string ean13,
     string name,
     double price,
     double amount,
     string units,
     string shortName)
 {
     DBController.SQLInsert(
         "WareHouse",
         "EAN13, Name, Price, Amount, Units, ShortName",
         $"'{ean13}', '{name}', '{price}', '{amount}', '{units}', '{shortName}'");
 }