yavsc/Yavsc/Models/Forms/Field.cs

24 lines
597 B
C#

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