Example #1
0
        /// <summary>
        /// Create a new Gasto object.
        /// </summary>
        /// <param name="idGasto">Initial value of the IdGasto property.</param>
        /// <param name="idPCTipoGasto">Initial value of the IdPCTipoGasto property.</param>
        /// <param name="fecha">Initial value of the Fecha property.</param>
        /// <param name="monto">Initial value of the Monto property.</param>
        /// <param name="fechaCreacion">Initial value of the FechaCreacion property.</param>
        public static Gasto CreateGasto(global::System.Int32 idGasto, global::System.Int32 idPCTipoGasto, global::System.DateTime fecha, global::System.Decimal monto, global::System.DateTime fechaCreacion)
        {
            Gasto gasto = new Gasto();

            gasto.IdGasto       = idGasto;
            gasto.IdPCTipoGasto = idPCTipoGasto;
            gasto.Fecha         = fecha;
            gasto.Monto         = monto;
            gasto.FechaCreacion = fechaCreacion;
            return(gasto);
        }
Example #2
0
 /// <summary>
 /// Constructor from Model Entity
 /// Framework BE --> Edm Entity Model
 /// </summary>
 /// <param name="pGasto">Edm Model BE</param>
 public GastoBE(Gasto pGasto)
 {
     _IdGasto       = pGasto.IdGasto;
     _IdPCTipoGasto = pGasto.IdPCTipoGasto;
     _Descripcion   = pGasto.Descripcion;
     _Fecha         = pGasto.Fecha;
     _Monto         = pGasto.Monto;
     _IdPCFormaPago = pGasto.IdPCFormaPago;
     _FechaCreacion = pGasto.FechaCreacion;
     _UserId        = pGasto.UserId;
 }
Example #3
0
 /// <summary>
 /// Create a new Gasto object.
 /// </summary>
 /// <param name="idGasto">Initial value of the IdGasto property.</param>
 /// <param name="idPCTipoGasto">Initial value of the IdPCTipoGasto property.</param>
 /// <param name="fecha">Initial value of the Fecha property.</param>
 /// <param name="monto">Initial value of the Monto property.</param>
 /// <param name="fechaCreacion">Initial value of the FechaCreacion property.</param>
 public static Gasto CreateGasto(global::System.Int32 idGasto, global::System.Int32 idPCTipoGasto, global::System.DateTime fecha, global::System.Decimal monto, global::System.DateTime fechaCreacion)
 {
     Gasto gasto = new Gasto();
     gasto.IdGasto = idGasto;
     gasto.IdPCTipoGasto = idPCTipoGasto;
     gasto.Fecha = fecha;
     gasto.Monto = monto;
     gasto.FechaCreacion = fechaCreacion;
     return gasto;
 }
Example #4
0
 /// <summary>
 /// Deprecated Method for adding a new object to the Gastoes EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToGastoes(Gasto gasto)
 {
     base.AddObject("Gastoes", gasto);
 }
Example #5
0
 /// <summary>
 /// Deprecated Method for adding a new object to the Gastoes EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToGastoes(Gasto gasto)
 {
     base.AddObject("Gastoes", gasto);
 }