public static DEVICE_STATUS Get(int primaryKeyId, string tableName) { Hashtable inparam = new Hashtable(); inparam.Add("GPSIndex", primaryKeyId); inparam.Add("tableName", tableName); return(BaseDA.QueryForObject <DEVICE_STATUS>("SelectDEVICE_STATUSById", inparam)); }
public static int GetNewId() { return(BaseDA.QueryForObject <int>("SelectUSERMaxID", null)); }