yavsc/Yavsc/Models/Forms/Field.cs

24 lines
597 B
C#

8 years ago
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
8 years ago
namespace Yavsc.Models.Forms
8 years ago
{
8 years ago
using Validation;
8 years ago
public abstract class Field
{
[Key,DatabaseGenerated(DatabaseGeneratedOption.Identity)]
public long Id {  get; set; }
public abstract Method [] ValidationMethods ();
8 years ago
[Required]
8 years ago
public string Name { get; set; }
public string Label { get; set; }
8 years ago
8 years ago
public string PlaceHolder { get; set; }
8 years ago
[Required]
8 years ago
public string ValueType { get; set; }
}
}