public void Configure(EntityTypeBuilder <Project> builder) { builder.Property(p => p.Name) .HasMaxLength(100) .IsRequired(); builder.Property(p => p.Priority) .HasConversion( p => p.Value, p => PriorityStatus.FromValue(p)); }
public void ChangeSignMoveCar(PriorityStatus priority) { Show(false); _signCar.SetActive(true); if (priority == PriorityStatus.priority) { _signCar.GetComponent <SpriteRenderer>().sprite = _signMove; } else { _signCar.GetComponent <SpriteRenderer>().sprite = _signStop; } }
public void SetPriorityStatus(PriorityStatus priority) { _priorityStatus = priority; _backlight.ChangeSignMoveCar(priority); }
public Project(string name, PriorityStatus priority) { Name = Guard.Against.NullOrEmpty(name, nameof(name)); Priority = priority; }