예제 #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!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
     }
 }
예제 #2
0
 partial void UpdateCommands(Commands instance);
예제 #3
0
 partial void DeleteCommands(Commands instance);
예제 #4
0
 partial void InsertCommands(Commands instance);