コード例 #1
0
ファイル: DataTypes.cs プロジェクト: AlineGuan/odata.net
 /// <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();
 }
コード例 #2
0
 /// <summary>
 /// Resolves the specified data type.
 /// </summary>
 /// <param name="dataType">Data type specification.</param>
 /// <returns>Resolved EDM Type.</returns>
 PrimitiveDataType IPrimitiveDataTypeVisitor <PrimitiveDataType> .Visit(GuidDataType dataType)
 {
     return(EdmDataTypes.Guid);
 }
コード例 #3
0
 IEdmPrimitiveTypeReference IPrimitiveDataTypeVisitor <IEdmPrimitiveTypeReference> .Visit(GuidDataType dataType)
 {
     return(this.GetFacetlessEdmTypeReference(dataType));
 }