Example #1
0
 public ColumnAttribute(ModelFieldType fieldType, string options, bool _DoTranslate = false)
 {
     FieldType = fieldType;
     if (_DoTranslate)
     {
         Options = _(options);
     }
 }
Example #2
0
 public virtual Model.Builder Fields(string fieldName, ModelFieldType type, string dateFormat)
 {
     this.ToComponent().Fields.Add(fieldName, type, dateFormat);
     return(this as Model.Builder);
 }
Example #3
0
 public ModelField(string name, ModelFieldType type, string dateFormat)
 {
     this.Name = name;
     this.Type = type;
     this.DateFormat = dateFormat;
 }
Example #4
0
 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);
 }
Example #6
0
 /// <summary>
 ///
 /// </summary>
 public virtual void Add(string name, ModelFieldType type)
 {
     this.Add(new ModelField(name, type));
 }
Example #7
0
 /// <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));
 }
Example #8
0
 public ModelField(string name, ModelFieldType type, string dateFormat)
 {
     this.Name       = name;
     this.Type       = type;
     this.DateFormat = dateFormat;
 }
Example #9
0
 public ModelField(string name, ModelFieldType type)
 {
     this.Name = name;
     this.Type = type;
 }
Example #10
0
 public ColumnAttribute(ModelFieldType fieldType, Type _OptionsType)
 {
     FieldType   = fieldType;
     OptionsType = _OptionsType;
     Options     = OptionsType.Name;
 }
Example #11
0
 public ColumnAttribute(ModelFieldType fieldType, string options)
 {
     FieldType = fieldType;
     Options   = options;
 }