Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonCropp committed Oct 29, 2024
1 parent f6e62d6 commit cb4d88f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions src/SampleWeb/DataContext/Device.cs
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@

public class Device
{
public int Id { get; set; }
public string Name { get; set; } = null!;

[ForeignKey("DeviceId")]
[InverseProperty("Devices")]
public virtual ICollection<Employee> Employees { get; set; } = new List<Employee>();
public virtual ICollection<Employee> Employees { get; set; } = [];
}
2 changes: 1 addition & 1 deletion src/SampleWeb/DataContext/Employee.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@ public class Employee

[ForeignKey("EmployeeId")]
[InverseProperty("Employees")]
public virtual ICollection<Device> Devices { get; set; } = new List<Device>();
public virtual ICollection<Device> Devices { get; set; } = [];
}

0 comments on commit cb4d88f

Please sign in to comment.