using System.ComponentModel.DataAnnotations; namespace TransportGuideDatabaseImplements.Models { public class StopRoute { public int Id { get; set; } [Required] public int StopId { get; set; } [Required] public int RouteId { get; set; } [Required] public int Nomer { get; set; } public virtual Route Route { get; set; } = new(); public virtual Stop Stop { get; set; } = new(); } }