autobus-api_old/AutobusApi.Domain/Entities/Address.cs
2023-11-02 07:56:12 +02:00

21 lines
505 B
C#

using AutobusApi.Domain.Common;
using AutobusApi.Domain.Enums;
using AutobusApi.Domain.IEntities;
namespace AutobusApi.Domain.Entities;
public class Address : EntityBase
{
public required string Name { get; set; }
public required ICoordinates Location { get; set; }
public required VehicleType VehicleType { get; set; }
public ICollection<RouteAddress> RouteAddresses { get; set; } = null!;
public required int CityId { get; set; }
public City City { get; set; } = null!;
}