JSON export added

This commit is contained in:
retr0volkov
2025-07-10 10:57:42 +03:00 Unverified
parent 915c7a7c5e
commit fe8bfe7ef0
13 changed files with 112 additions and 8 deletions
+4
View File
@@ -1,6 +1,7 @@
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Text.Json.Serialization;
namespace GazpromApp.Models;
public class Image
@@ -8,10 +9,13 @@ public class Image
[Key]
[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
[JsonIgnore]
public int Id { get; set; }
[Required]
public byte[] Bytes { get; set; } = [];
// EF stuff
[JsonIgnore]
public List<Point> Points { get; set; } = [];
[JsonIgnore]
public List<Equipment> Equipment { get; set; } = [];
}