using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Data; namespace Modelo { public class ModeloItensVenda { //metodo construtor sem paramentros public ModeloItensVenda() { this.itv_cod = 0; this.itv_qtde = 0; this.itv_valor = 0; this.ven_cod = 0; this.pro_cod = 0; }//end method public ModeloItensVenda(int itvcod,double itvqtde,double itvvalor,int vencod,int procod) { this.Itv_cod = itvcod; this.Itv_qtde = itvqtde; this.Itv_valor = itvvalor; this.Ven_cod = vencod; this.Pro_cod = procod; }//metodo construtor com parametros //propriedades privadas da classe private int itv_cod; private double itv_qtde; private double itv_valor; private int ven_cod; private int pro_cod; //propriedades publicas da classe public int Itv_cod { get => itv_cod; set => itv_cod = value; } public double Itv_qtde { get => itv_qtde; set => itv_qtde = value; } public double Itv_valor { get => itv_valor; set => itv_valor = value; } public int Ven_cod { get => ven_cod; set => ven_cod = value; } public int Pro_cod { get => pro_cod; set => pro_cod = value; } } }