예제 #1
0
 internal void Parse(Command cmd)
 {
     if (SqlText.Length > 0)
     {
         cmd.SqlText.Append(" where ").Append(SqlText);
         foreach (Parameter p in Parameters)
         {
             cmd.AddParameter(p);
         }
     }
 }
예제 #2
0
 public static Command GetThreadCommand()
 {
     if (_threadCommand == null)
         _threadCommand = new Command(string.Empty);
     _threadCommand.Clean();
     return _threadCommand;
 }