31 lines
1.1 KiB
C#
31 lines
1.1 KiB
C#
using System.ComponentModel.DataAnnotations.Schema;
|
|
using AyCode.Entities.Interfaces;
|
|
using AyCode.Entities.Locations;
|
|
using AyCode.Interfaces.TimeStampInfo;
|
|
|
|
namespace TIAM.Entities.TransferDestinations
|
|
{
|
|
[Table("TransferDestination")]
|
|
public class TransferDestination : LocationBase, ITimeStampInfo
|
|
{
|
|
public Guid Id { get; set; }
|
|
public double Longitude { get; set; }
|
|
public double Latitude { get; set; }
|
|
public string? Address { get; set; }
|
|
public string? Name { get; set; }
|
|
|
|
public DateTime Created { get; set; }
|
|
public DateTime Modified { get; set; }
|
|
|
|
public TransferDestination() { }
|
|
|
|
public TransferDestination(double longitude, double latitude, string address) : this(Guid.NewGuid(), longitude, latitude, address) { }
|
|
|
|
public TransferDestination(Guid id, double longitude, double latitude, string address) : base(Guid.NewGuid(), longitude, latitude, address) { }
|
|
|
|
|
|
public TransferDestination(Guid id, string name, double longitude, double latitude, string address) : base(id, longitude, latitude, address) { }
|
|
}
|
|
}
|
|
|