Exemple #1
0
 /// <summary>
 /// Creates a new field with a specific name and using a simplified enumeration of possible types.
 /// </summary>
 /// <param name="inColumnName">the string column name.</param>
 /// <param name="type">The type enumeration that clarifies which basic data type to use.</param>
 public Field(string inColumnName, FieldDataTypes type) : base(inColumnName)
 {
     if (type == FieldDataTypes.Double)
     {
         base.DataType = typeof(double);
     }
     if (type == FieldDataTypes.Integer)
     {
         base.DataType = typeof(int);
     }
     if (type == FieldDataTypes.String)
     {
         base.DataType = typeof(string);
     }
 }
Exemple #2
0
 public FieldBase(object value, FieldDataTypes type)
 {
     Value         = value;
     FieldDataType = type;
 }
Exemple #3
0
 public ColumnDataAttribute(string columnName = "", FieldDataTypes datatype = FieldDataTypes.Text)
 {
     _columnName     = columnName;
     _columnDataType = datatype;
 }
Exemple #4
0
 public ItemField(object value, FieldDataTypes type) : base(value, type)
 {
 }
Exemple #5
0
 /// <summary>
 /// Creates a new field with a specific name and using a simplified enumeration of possible types.
 /// </summary>
 /// <param name="inColumnName">the string column name.</param>
 /// <param name="type">The type enumeration that clarifies which basic data type to use.</param>
 public Field(string inColumnName, FieldDataTypes type) :base(inColumnName)
 {
     if (type == FieldDataTypes.Double) base.DataType = typeof(double);
     if (type == FieldDataTypes.Integer) base.DataType = typeof(int);
     if (type == FieldDataTypes.String) base.DataType = typeof(string);
 }