public ObservableCollection<DeviceTypeOR> GetAllDeviceType() { string sql = "select * from t_DeviceType"; DataTable dt = null; try { dt = db.ExecuteQueryDataSet(sql).Tables[0]; } catch (Exception ex) { throw ex; } ObservableCollection<DeviceTypeOR> _List = new ObservableCollection<DeviceTypeOR>(); foreach (DataRow dr in dt.Rows) { DeviceTypeOR obj = new DeviceTypeOR(dr); _List.Add(obj); } return _List; }
public void Clone(DeviceTypeOR obj) { // Devicetypeid = obj.Devicetypeid; // Typename = obj.Typename; // Parsedll = obj.Parsedll; // Savetimeinteval = obj.Savetimeinteval; // Param = obj.Param; // Ip = obj.Ip; // Stationid = obj.Stationid; }