public void ChangeItem(int id) { RotaManipulation item = new RotaManipulation(); Rota i = item.FindByID(id); Id = id; SensorFinal = i.SensorFinal; SensorInicial = i.SensorInicial; Tracado = i.Tracado; }
internal Rota(int id) : base("rota", "IdRota") { if (base.Exists(id)) { RotaManipulation item = new RotaManipulation(); Rota i = item.FindByID(id); Id = id; SensorFinal = i.SensorFinal; SensorInicial = i.SensorInicial; Tracado = i.Tracado; } }
public static Rota FindById(long id) { RotaManipulation item = new RotaManipulation(); return(item.FindByID(id)); }