mirror of
https://gitlab.com/Hukuta47/cartrix.git
synced 2026-12-05 12:30:55 +00:00
Сделал раздел с устройствами где есть Datagrid с выводом как местоположений так и устройств в них
This commit is contained in:
1 parent
3d52cd5691
commit
17e4794160
25 files changed
+595
-308
No files matched your search
@@ -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!;
|
||||
}
|
||||
}
|
||||
@@ -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!;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user