public account_t_station Get_Station_ByIP(string IP) { try { using (sartas3 db = new sartas3()) { account_t_station s = db.account_t_station.Where(n => n.ConnectString == IP).FirstOrDefault(); return(s); } } catch (Exception ex) { throw ex; } }
/// <summary> /// 查询车站信息 /// </summary> /// <param name="StationID"></param> /// <returns></returns> public account_t_station Get_Station(string StationID) { try { using (sartas3 db = new sartas3()) { account_t_station s = db.account_t_station.Where(n => n.StationID == StationID).FirstOrDefault(); return(s); } } catch (Exception ex) { throw ex; } }