/// <summary> /// Initializes static members of the DataTypes class. /// </summary> static DataTypes() { Integer = new IntegerDataType(); Stream = new StreamDataType(); String = new StringDataType(); Boolean = new BooleanDataType(); FixedPoint = new FixedPointDataType(); FloatingPoint = new FloatingPointDataType(); DateTime = new DateTimeDataType(); Binary = new BinaryDataType(); Guid = new GuidDataType(); TimeOfDay = new TimeOfDayDataType(); ComplexType = new ComplexDataType(); EntityType = new EntityDataType(); CollectionType = new CollectionDataType(); ReferenceType = new ReferenceDataType(); RowType = new RowDataType(); EnumType = new EnumDataType(); Spatial = new SpatialDataType(); }
/// <summary> /// Resolves the specified type into its type reference. /// </summary> /// <param name="dataType">The data type.</param> /// <returns>CodeTypeReference that should be used in code to refer to the type.</returns> public virtual CodeTypeReference Visit(RowDataType dataType) { throw new TaupoNotSupportedException("Taupo does not support code gen for row data type yet."); }
/// <summary> /// Resolves enum definitions in enum data types /// </summary> /// <param name="dataType">the data type</param> /// <returns>Resolved data type</returns> public DataType Visit(RowDataType dataType) { this.EnumDefinitionFixup(null, dataType.Definition); return(dataType); }