Scenario.cs 698 B

12345678910111213141516171819202122232425
  1. using Waaagh.Helpers;
  2. namespace Waaagh.Models {
  3. public class Scenario: IUpdateReferences<Scenario> {
  4. public int Id { get; set; } = 0;
  5. public string Name { get; set; } = string.Empty;
  6. public string Description { get; set; } = string.Empty;
  7. public DateTime LastUpdateTime { get; set; } = DateTime.MinValue;
  8. public int Version { get; set; } = 0;
  9. public Scenario() { }
  10. public void UpdateReferences(Scenario value) {
  11. Scenario scenario = this;
  12. ModelUpdateHelper.UpdateWritableProperies(ref scenario, value);
  13. }
  14. #region Falgs
  15. public bool IsLegacy { get; set; }
  16. #endregion
  17. }
  18. }