/// <summary> /// Deprecated Method for adding a new object to the Ventas EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToVentas(Venta venta) { base.AddObject("Ventas", venta); }
/// <summary> /// Create a new Venta object. /// </summary> /// <param name="id_venta">Initial value of the id_venta property.</param> /// <param name="fecha">Initial value of the fecha property.</param> /// <param name="total_precio">Initial value of the total_precio property.</param> /// <param name="id_usuario_fk">Initial value of the id_usuario_fk property.</param> public static Venta CreateVenta(global::System.Int32 id_venta, global::System.DateTime fecha, global::System.Decimal total_precio, global::System.Int32 id_usuario_fk) { Venta venta = new Venta(); venta.id_venta = id_venta; venta.fecha = fecha; venta.total_precio = total_precio; venta.id_usuario_fk = id_usuario_fk; return venta; }