/// <summary>
 /// Deprecated Method for adding a new object to the OrdenCompra EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToOrdenCompra(OrdenCompra ordenCompra)
 {
     base.AddObject("OrdenCompra", ordenCompra);
 }
 /// <summary>
 /// Create a new OrdenCompra object.
 /// </summary>
 /// <param name="idOrdenCompra">Initial value of the IdOrdenCompra property.</param>
 /// <param name="idEmpresa">Initial value of the idEmpresa property.</param>
 /// <param name="idUsuario">Initial value of the IdUsuario property.</param>
 /// <param name="fecha">Initial value of the Fecha property.</param>
 /// <param name="fechaModificacion">Initial value of the FechaModificacion property.</param>
 /// <param name="idProveedor">Initial value of the idProveedor property.</param>
 /// <param name="numeroCotizacion">Initial value of the NumeroCotizacion property.</param>
 /// <param name="idEstado">Initial value of the idEstado property.</param>
 public static OrdenCompra CreateOrdenCompra(global::System.Int32 idOrdenCompra, global::System.Int32 idEmpresa, global::System.Int32 idUsuario, global::System.DateTime fecha, global::System.DateTime fechaModificacion, global::System.Int32 idProveedor, global::System.Int32 numeroCotizacion, global::System.Int32 idEstado)
 {
     OrdenCompra ordenCompra = new OrdenCompra();
     ordenCompra.IdOrdenCompra = idOrdenCompra;
     ordenCompra.idEmpresa = idEmpresa;
     ordenCompra.IdUsuario = idUsuario;
     ordenCompra.Fecha = fecha;
     ordenCompra.FechaModificacion = fechaModificacion;
     ordenCompra.idProveedor = idProveedor;
     ordenCompra.NumeroCotizacion = numeroCotizacion;
     ordenCompra.idEstado = idEstado;
     return ordenCompra;
 }