38 lines
1.4 KiB
C#
38 lines
1.4 KiB
C#
using System.ComponentModel.DataAnnotations.Schema;
|
|
using AyCode.Interfaces.Entities;
|
|
using AyCode.Entities.Locations;
|
|
using AyCode.Interfaces.TimeStampInfo;
|
|
using System.ComponentModel.DataAnnotations;
|
|
using System.Text.RegularExpressions;
|
|
|
|
namespace TIAM.Entities.TransferDestinations
|
|
{
|
|
[Table("TransferDestinations")]
|
|
public class TransferDestination : LocationBase, ITimeStampInfo
|
|
{
|
|
//[Required(ErrorMessage = "The Username value should be specified.")]
|
|
public string? Name { get; set; }
|
|
|
|
public string? Description { get; set; }
|
|
|
|
public DateTime Created { get; set; }
|
|
public DateTime Modified { get; set; }
|
|
|
|
public TransferDestination() { }
|
|
public TransferDestination(double latitude, double longitude, string address) : this(Guid.NewGuid(), latitude, longitude, address) { }
|
|
public TransferDestination(Guid id, double latitude, double longitude, string address) : base(id, latitude, longitude, address) { }
|
|
|
|
public TransferDestination(Guid id, string name, double latitude, double longitude, string address) : this(id, latitude, longitude, address)
|
|
{
|
|
Name = name;
|
|
}
|
|
|
|
public TransferDestination(Guid id, string name, string description, double latitude, double longitude, string address) : this(id, name, latitude, longitude, address)
|
|
{
|
|
Description = description;
|
|
}
|
|
}
|
|
|
|
}
|
|
|