Сделал раздел с устройствами где есть Datagrid с выводом как местоположений так и устройств в них

This commit is contained in:
Hukuta committed 2026-05-07 19:04:10 +09:00
1 parent 3d52cd5691
commit 17e4794160
25 files changed
+595 -308

No files matched your search

+1 -3
View File
@@ -1,11 +1,9 @@
using Microsoft.EntityFrameworkCore;
namespace CartriX.Shared.Models
{
public class Location
{
public int id { get; set; }
public string name { get; set; } = null!;
public ICollection<Printer> printers { get; set; } = new List<Printer>();
public List<Printer> printers { get; set; } = null!;
}
}
-2
View File
@@ -6,9 +6,7 @@ namespace CartriX.Shared.Models
public string name { get; set; } = null!;
public string hostname { get; set; } = null!;
public string ipAddress { get; set; } = null!;
public int locationId { get; set; }
public Location location { get; set; } = null!;
public int modelId { get; set; }
public PrinterModel model { get; set; } = null!;
}
}