Mercurial > altnet-hispano
comparison Agendas/trunk/src/Agendas.Domain/Evento.cs @ 95:83d76f6e0a3c
Quitando la lista de eventos de la persona ya que no se usaba mas que en los tests
author | Nelo@Kenia.neluz.int |
---|---|
date | Sat, 04 Jun 2011 18:33:15 -0300 |
parents | db4b1e2cae49 |
children | 2434c2323f3d |
comparison
equal
deleted
inserted
replaced
94:db4b1e2cae49 | 95:83d76f6e0a3c |
---|---|
11 } | 11 } |
12 | 12 |
13 #region Propiedades del Evento | 13 #region Propiedades del Evento |
14 | 14 |
15 private readonly IList<Track> _tracks; | 15 private readonly IList<Track> _tracks; |
16 private Persona _persona; | |
17 private readonly ICollection<Track> _newTracks = new List<Track>(); | 16 private readonly ICollection<Track> _newTracks = new List<Track>(); |
18 | 17 |
19 /// <summary> | 18 /// <summary> |
20 /// Título del evento | 19 /// Título del evento |
21 /// </summary> | 20 /// </summary> |
42 public virtual short NumeroOrden { get; private set; } | 41 public virtual short NumeroOrden { get; private set; } |
43 | 42 |
44 /// <summary> | 43 /// <summary> |
45 /// Ponente o responsable del evento | 44 /// Ponente o responsable del evento |
46 /// </summary> | 45 /// </summary> |
47 public virtual Persona Persona | 46 public virtual Persona Persona { get; private set; } |
48 { | |
49 get { return _persona; } | |
50 private set | |
51 { | |
52 if (value == null && _persona != null || value != _persona && _persona != null) | |
53 _persona.RemoveEvento(this); | |
54 if (value != null) | |
55 value.AddEvento(this); | |
56 _persona = value; | |
57 } | |
58 } | |
59 | 47 |
60 /// <summary> | 48 /// <summary> |
61 /// Track de cambios que ha sufrido el evento | 49 /// Track de cambios que ha sufrido el evento |
62 /// </summary> | 50 /// </summary> |
63 public virtual IEnumerable<Track> Tracks | 51 public virtual IEnumerable<Track> Tracks |