Class FieldTypeConvert
FieldTypeConvert contains the interface to use when you want to convert a field to another type, for example from blob to varchar.
Implements
System.ICloneable
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: SuperOffice.Data.SQL
Assembly: SoDataBase.dll
Syntax
public sealed class FieldTypeConvert : DatabaseFunctions, ICloneable
Constructors
FieldTypeConvert(FieldInfo, FieldDataType)
Initializes a new instance of the FieldTypeConvert class.
Declaration
public FieldTypeConvert(FieldInfo field, FieldDataType newType)
Parameters
Type | Name | Description |
---|---|---|
FieldInfo | field | The field you want to convert |
FieldDataType | newType | The fieldtype you want to convert to |
FieldTypeConvert(FieldInfo, FieldDataType, Int32)
Initializes a new instance of the FieldTypeConvert class.
Declaration
public FieldTypeConvert(FieldInfo field, FieldDataType newType, int length)
Parameters
Type | Name | Description |
---|---|---|
FieldInfo | field | The field you want to convert |
FieldDataType | newType | The fieldtype you want to convert to |
System.Int32 | length | The length of the converted field |
Properties
ConvertFieldType
The new type of the converted field.
Declaration
public FieldDataType ConvertFieldType { get; }
Property Value
Type | Description |
---|---|
FieldDataType |
ConvertLength
The new length of the converted field.
Declaration
public int ConvertLength { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
Methods
Clone()
Clone the query. Parameter values are shared between the original and the clone.
Declaration
public override object Clone()
Returns
Type | Description |
---|---|
System.Object | Copy of the NOTLIKE node |
Overrides
Remarks
This method is used by the
ToString()
String output.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String | CONVERT(a) |
Overrides
System.Object.ToString()
Implements
System.ICloneable
Extension Methods
EnumUtil.MapEnums<From, To>(From)