public IList<Command> SelectAll(String hostCode, List<Int32> signalTags) { var returns = new List<Command>(); var dt = SqlDbAccess.GetInstance().GetTable(" select * from " + hostCode + "_TPointAO where TagID in (" + String.Join(",", signalTags) + ")"); foreach (DataRow dr in dt.Rows) { var g = new Command(); g.FromDataRow(dr, hostCode); returns.Add(g); } return returns; }
public IList<Command> SelectAll(String hostCode) { var returns = new List<Command>(); var dt = SqlDbAccess.GetInstance().GetTable(" select * from " + hostCode + "_TPointAO "); foreach (DataRow dr in dt.Rows) { var g = new Command(); g.FromDataRow(dr, hostCode); returns.Add(g); } return returns; }