24 lines
No EOL
610 B
C#
24 lines
No EOL
610 B
C#
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; }
|
||
|
||
}
|
||
} |