Exemple #1
0
        /// <summary>
        /// Creates a new instance of <see cref="SpatialDataType" /> with the specified nullability.
        /// </summary>
        /// <param name="isNullable">If set to <c>true</c> the type will be nullable.</param>
        /// <returns>New instance of <see cref="SpatialDataType"/> with specified nullability.</returns>
        public SpatialDataType Nullable(bool isNullable)
        {
            var spatial = new SpatialDataType(isNullable, this.Facets)
                          .WithProperties(this.Properties.ToArray())
                          .WithMethods(this.Methods.ToArray());

            return(spatial);
        }
Exemple #2
0
        /// <summary>
        /// Creates a new type based on this type with the specified nullability flag and facets.
        /// </summary>
        /// <param name="isNullable">Nullability flag for the new type.</param>
        /// <param name="facets">List of facets for the new type.</param>
        /// <returns>
        /// Newly created <see cref="SpatialDataType"/>.
        /// </returns>
        protected internal override PrimitiveDataType Create(bool isNullable, IEnumerable <PrimitiveDataTypeFacet> facets)
        {
            var spatial = new SpatialDataType(isNullable, facets)
                          .WithProperties(this.Properties.ToArray())
                          .WithMethods(this.Methods.ToArray());

            return(spatial);
        }
Exemple #3
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();
 }