Exemple #1
0
    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));
    }
Exemple #2
0
 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;
     }
 }
Exemple #3
0
 public void SetPriorityStatus(PriorityStatus priority)
 {
     _priorityStatus = priority;
     _backlight.ChangeSignMoveCar(priority);
 }
Exemple #4
0
 public Project(string name, PriorityStatus priority)
 {
     Name     = Guard.Against.NullOrEmpty(name, nameof(name));
     Priority = priority;
 }