Exemplo n.º 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();
 }
Exemplo n.º 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();
 }
Exemplo n.º 3
0
 IEdmPrimitiveTypeReference IPrimitiveDataTypeVisitor <IEdmPrimitiveTypeReference> .Visit(IntegerDataType dataType)
 {
     return(this.GetFacetlessEdmTypeReference(dataType));
 }
Exemplo n.º 4
0
 public virtual void VisitIntegerDataType(IntegerDataType integerDataType)
 {
     DefaultVisit(integerDataType);
 }
Exemplo n.º 5
0
        public void ShouldAcceptDotAsThousandSeparator()
        {
            IntegerDataType dataType = new IntegerDataType("n.nnn", null);

            dataType.GetThousandSeparator().Should().Be(".");
        }
Exemplo n.º 6
0
        public void ShouldAcceptNullAsFieldFormat()
        {
            IntegerDataType dataType = new IntegerDataType(null, null);

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