示例#1
0
 /// <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
 static DataTypeDescriptor()
 {
     DnsName = new DnsNameDataType();
     IpAddress = new IpAddress();
     Bag = new Bag();
     Time = new Time();
     String = new StringDataType();
     Rfc822Name = new Rfc822Name();
     X500Name = new X500Name();
     Double = new DoubleDataType();
     YearMonthDuration = new YearMonthDuration();
     DaytimeDuration = new DaytimeDuration();
     DateTime = new DateTime();
     Date = new DateDataType();
     Integer = new IntegerDataType();
     Boolean = new BooleanDataType();
     HexBinary = new HexBinary();
     Base64Binary = new Base64Binary();
     AnyUri = new AnyUri();
     Function = new FunctionDataType();
 }
示例#3
0
 IEdmPrimitiveTypeReference IPrimitiveDataTypeVisitor <IEdmPrimitiveTypeReference> .Visit(IntegerDataType dataType)
 {
     return(this.GetFacetlessEdmTypeReference(dataType));
 }
示例#4
0
 public virtual void VisitIntegerDataType(IntegerDataType integerDataType)
 {
     DefaultVisit(integerDataType);
 }
示例#5
0
        public void ShouldAcceptDotAsThousandSeparator()
        {
            IntegerDataType dataType = new IntegerDataType("n.nnn", null);

            dataType.GetThousandSeparator().Should().Be(".");
        }
示例#6
0
        public void ShouldAcceptNullAsFieldFormat()
        {
            IntegerDataType dataType = new IntegerDataType(null, null);

            dataType.GetThousandSeparator().Should().BeNull();
        }