using System; using System.Collections.Generic; using Iesi.Collections.Generic; using Portoa.Persistence; namespace VideoGameQuotes.Api { public class Game : Entity { private readonly Iesi.Collections.Generic.ISet systems = new HashedSet(); public Game() { Created = DateTime.UtcNow; } public virtual User Creator { get; set; } public virtual DateTime Created { get; set; } public virtual IEnumerable Systems { get { return systems; } } public virtual string Name { get; set; } public virtual Publisher Publisher { get; set; } public virtual byte[] Screenshot { get; set; } public virtual Region Region { get; set; } public virtual void AddSystem(System system) { systems.Add(system); } public virtual void RemoveSystem(System system) { systems.Remove(system); } } }