public ColumnAttribute(ModelFieldType fieldType, string options, bool _DoTranslate = false) { FieldType = fieldType; if (_DoTranslate) { Options = _(options); } }
public virtual Model.Builder Fields(string fieldName, ModelFieldType type, string dateFormat) { this.ToComponent().Fields.Add(fieldName, type, dateFormat); return(this as Model.Builder); }
public ModelField(string name, ModelFieldType type, string dateFormat) { this.Name = name; this.Type = type; this.DateFormat = dateFormat; }
public ModelField(string name, ModelFieldType type) { this.Name = name; this.Type = type; }
/// <summary> /// (Optional) The data type for automatic conversion from received data to the stored value if convert has not been specified. /// </summary> public virtual ModelField.Builder Type(ModelFieldType type) { this.ToComponent().Type = type; return(this as ModelField.Builder); }
/// <summary> /// /// </summary> public virtual void Add(string name, ModelFieldType type) { this.Add(new ModelField(name, type)); }
/// <summary> /// /// </summary> /// <param name="name"></param> /// <param name="type"></param> /// <param name="dateFormat"></param> public virtual void Add(string name, ModelFieldType type, string dateFormat) { this.Add(new ModelField(name, type, dateFormat)); }
public ColumnAttribute(ModelFieldType fieldType, Type _OptionsType) { FieldType = fieldType; OptionsType = _OptionsType; Options = OptionsType.Name; }
public ColumnAttribute(ModelFieldType fieldType, string options) { FieldType = fieldType; Options = options; }