yavsc/Yavsc/Models/Forms/Field.cs

24 lines
610 B
C#
Raw Normal View History

2016-11-16 10:17:24 +01:00
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using Yavsc.Model.Forms.Validation;
namespace Yavsc.Model.Forms
{
public abstract class Field
{
[Key,DatabaseGenerated(DatabaseGeneratedOption.Identity)]
public long Id {  get; set; }
public abstract Method [] ValidationMethods ();
2016-11-24 01:01:41 +01:00
[Required]
2016-11-16 10:17:24 +01:00
public string Name { get; set; }
public string Label { get; set; }
2016-11-24 01:01:41 +01:00
2016-11-16 10:17:24 +01:00
public string PlaceHolder { get; set; }
2016-11-24 01:01:41 +01:00
[Required]
2016-11-16 10:17:24 +01:00
public string ValueType { get; set; }
}
}