yavsc/src/Yavsc.Abstract/Relationship/Location.cs

16 lines
457 B
C#
Raw Normal View History

2016-05-17 18:22:18 +02:00
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
2019-09-04 01:25:36 +01:00
using Yavsc.Attributes.Validation;
2016-05-17 18:22:18 +02:00
2017-01-19 12:59:49 +01:00
namespace Yavsc.Models.Relationship
2016-05-17 18:22:18 +02:00
{
2018-01-15 14:09:19 +01:00
public class Location : Position, ILocation {
2016-05-17 18:22:18 +02:00
[Key, DatabaseGenerated(DatabaseGeneratedOption.Identity)]
public long Id { get; set; }
2019-09-04 01:25:36 +01:00
[YaRequired(),
2016-10-23 01:31:09 +02:00
Display(Name="Address"),
MaxLength(512)]
2016-05-17 18:22:18 +02:00
public string Address { get; set; }
}
}