/// <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); } }
public FieldBase(object value, FieldDataTypes type) { Value = value; FieldDataType = type; }
public ColumnDataAttribute(string columnName = "", FieldDataTypes datatype = FieldDataTypes.Text) { _columnName = columnName; _columnDataType = datatype; }
public ItemField(object value, FieldDataTypes type) : base(value, type) { }
/// <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); }