Created
May 31, 2010 20:27
-
-
Save jfromaniello/420244 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class MovimientoEntity | |
{ | |
private Int64 _idMov; | |
public virtual Int64 idMov | |
{ | |
get { return _idMov; } | |
set { _idMov = value; } | |
} | |
private CuentaEntity _Cuenta; | |
public virtual CuentaEntity Cuenta | |
{ | |
get { return _Cuenta; } | |
set { _Cuenta = value; } | |
} | |
private DateTime _fecha; | |
public virtual DateTime Fecha | |
{ | |
get { return _fecha; } | |
set { _fecha = value; } | |
} | |
private decimal _importe; | |
public virtual decimal Importe | |
{ | |
get { return _importe; } | |
set { _importe = value; } | |
} | |
private HashedSet<DetalleMovimientoEntity> _lineas = new HashedSet<CuentaContable>(); | |
public virtual IEnumerable<DetalleMovimientoEntity> Lineas | |
{ | |
get { return _lineas; } | |
} | |
public virtual void AgregarLinea(DetalleMovimientoEntity linea) | |
{ | |
linea.Movimiento = this; | |
if(!_lineas.Contains(linea)) { _lineas.Add(linea); } | |
} | |
public virtual void BorrarLinea(DetalleMovimientoEntity linea) | |
{ | |
linea.Movimiento = null; | |
if(_lineas.Contains(linea)) { _lineas.Remove(linea); } | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment