yavsc/Yavsc/Models/Forms/Field.cs

24 lines
610 B
C#

This file contains invisible Unicode characters!

This file contains invisible Unicode characters that may be processed differently from what appears below. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to reveal hidden characters.

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 ();
[Required]
public string Name { get; set; }
public string Label { get; set; }
public string PlaceHolder { get; set; }
[Required]
public string ValueType { get; set; }
}
}