a form model
This commit is contained in:
parent
612547c4a1
commit
dfa034afcf
5 changed files with 70 additions and 0 deletions
21
Yavsc/Model/Forms/Field.cs
Normal file
21
Yavsc/Model/Forms/Field.cs
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
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 ();
|
||||
|
||||
public string Name { get; set; }
|
||||
|
||||
public string Label { get; set; }
|
||||
public string PlaceHolder { get; set; }
|
||||
|
||||
public string ValueType { get; set; }
|
||||
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue