using System;
using System.ComponentModel.DataAnnotations;
namespace Yavsc.Model.FrontOffice
{
///
/// Form input.
///
public abstract class FormInput: FormElement
{
///
/// Gets or sets the identifier, unique in its Form.
///
///
/// The identifier.
///
[Required]
[StringLength(256)]
public string Id { get; set; }
///
/// Gets the type.
///
/// The type.
public abstract string Type { get; }
private string name=null;
///
/// Gets or sets the name.
///
/// The name.
[StringLength(256)]
public string Name { get { return name == null ? Id : name; } set { name = value; } }
}
}