1 //---------------------------------------------------------------------
2 // <copyright file="DbSpatialWellKnownValue.cs" company="Microsoft">
3 // Copyright (c) Microsoft Corporation. All rights reserved.
7 // @backupOwner Microsoft
8 //---------------------------------------------------------------------
10 using System.Runtime.Serialization;
11 namespace System.Data.Spatial
14 /// A data contract serializable representation of a <see cref="DbGeometry"/> value.
16 [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", MessageId = "Db")]
18 public sealed class DbGeometryWellKnownValue
20 public DbGeometryWellKnownValue()
25 /// Gets or sets the coordinate system identifier (SRID) of this value.
27 [DataMember(Order=1, IsRequired=false, EmitDefaultValue=false)]
28 public int CoordinateSystemId { get; set; }
31 /// Gets or sets the well known text representation of this value.
33 [DataMember(Order=2, IsRequired=false, EmitDefaultValue=false)]
34 public string WellKnownText { get; set; }
37 /// Gets or sets the well known binary representation of this value.
39 [DataMember(Order = 3, IsRequired = false, EmitDefaultValue = false)]
40 [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Performance", "CA1819:PropertiesShouldNotReturnArrays", Justification = "Required for this feature")]
41 public byte[] WellKnownBinary { get; set; }