using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace GreenTree.Nachtragsmanagement.Core.Domain.Site
{
public class Site : BaseEntity
{
#region Fields
///
/// Userlist
///
private ICollection _users;
///
/// Appendixlist
///
private ICollection _appendices;
#endregion
///
/// CustomNumber for identification
///
public int CustomNumber { get; set; }
///
/// Description
///
public string Description { get; set; }
///
/// Beginning of the site
///
public DateTime Start { get; set; }
///
/// Ending of the site
///
public DateTime End { get; set; }
///
/// Corresponding department handling the site
///
public string Department { get; set; }
///
/// Editable comment
///
public string Comment { get; set; }
///
/// Determines if the site is completely finished
///
public bool Finished { get; set; }
///
/// Users responsible for this site
///
public virtual ICollection Users
{
get { return _users ?? ( _users = new List()); }
protected set { _users = value; }
}
///
/// Appendices related to the site
///
public virtual ICollection Appendices
{
get { return _appendices ?? (_appendices = new List()); }
protected set { _appendices = value; }
}
}
}