Files
GazpromApp/Models/Property.cs
T
2025-07-09 14:27:45 +03:00

20 lines
672 B
C#

using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace GazpromApp.Models;
public class Property
{
[Key]
[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
public int Id { get; set; }
public int ParentId { get; set; }
[Required]
public string Name { get; set; } = string.Empty;
public string Value { get; set; } = string.Empty;
// EF stuff
public Property? Parent { get; set; }
public List<Property> Properties{ get; set; } = [];
public List<Models.Point> Points { get; set; } = [];
public List<Equipment> Equipment { get; } = [];
}