Exemplo n.º 1
0
 public static void AddCommand(int rschId, string command, string commandParams = "", int startTime = 60)
 {
     var db = new SandBoxDataContext();
     try
     {
         if ((command != null && command != String.Empty))
         {
             Commands newCommand = new Commands()
             {
                 RschId = rschId,
                 Command = command,
                 CommandParams = commandParams,
                 CommandStartTime = startTime
             };
             db.Commands.InsertOnSubmit(newCommand);
             db.SubmitChanges();
         }
     }
     catch (Exception e)
     {
         //УБРАТЬ СЛЕПОЙ CATCH!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
     }
 }
Exemplo n.º 2
0
 partial void UpdateCommands(Commands instance);
Exemplo n.º 3
0
 partial void DeleteCommands(Commands instance);
Exemplo n.º 4
0
 partial void InsertCommands(Commands instance);