public static detalleventa Newdetalleventa(int id) { detalleventa newEntity = new detalleventa(); newEntity._id = id; return(newEntity); }
public List <detalleventa> GetAlldetalleventa() { List <detalleventa> lista = new List <detalleventa>(); SqlService sql = new SqlService(); MySqlDataReader reader = sql.ExecuteSqlReader("SELECT * FROM detalleventa"); detalleventa obj; while (reader.Read()) { obj = new detalleventa(); obj.LoadFromReader(reader); lista.Add(obj); } reader.Close(); return(lista); }