1 //------------------------------------------------------------------------------
2 // <copyright file="SqlSpatialFunctions.cs company="Microsoft">
3 // Copyright (c) Microsoft Corporation. All rights reserved.
7 // This code was generated by a tool.
8 // Generation date and time : 10/12/2011 16:04:41.8136839
10 // Changes to this file will be lost if the code is regenerated.
14 // @backupOwner [....]
15 //------------------------------------------------------------------------------
17 using System.Collections.Generic;
18 using System.Data.Objects;
19 using System.Data.Objects.DataClasses;
21 using System.Linq.Expressions;
22 using System.Reflection;
24 namespace System.Data.Objects.SqlClient
27 /// Contains function stubs that expose SqlServer methods in Linq to Entities.
29 public static class SqlSpatialFunctions
32 /// Proxy for the function SqlServer.POINTGEOGRAPHY
34 [EdmFunction("SqlServer", "POINTGEOGRAPHY")]
35 public static System.Data.Spatial.DbGeography PointGeography(System.Double? latitude, System.Double? longitude, System.Int32? spatialReferenceId)
37 throw EntityUtil.NotSupported(System.Data.Entity.Strings.ELinq_EdmFunctionDirectCall);
41 /// Proxy for the function SqlServer.ASTEXTZM
43 [EdmFunction("SqlServer", "ASTEXTZM")]
44 public static System.String AsTextZM(System.Data.Spatial.DbGeography geographyValue)
46 throw EntityUtil.NotSupported(System.Data.Entity.Strings.ELinq_EdmFunctionDirectCall);
50 /// Proxy for the function SqlServer.BUFFERWITHTOLERANCE
52 [EdmFunction("SqlServer", "BUFFERWITHTOLERANCE")]
53 public static System.Data.Spatial.DbGeography BufferWithTolerance(System.Data.Spatial.DbGeography geographyValue, System.Double? distance, System.Double? tolerance, System.Boolean? relative)
55 throw EntityUtil.NotSupported(System.Data.Entity.Strings.ELinq_EdmFunctionDirectCall);
59 /// Proxy for the function SqlServer.ENVELOPEANGLE
61 [EdmFunction("SqlServer", "ENVELOPEANGLE")]
62 public static System.Double? EnvelopeAngle(System.Data.Spatial.DbGeography geographyValue)
64 throw EntityUtil.NotSupported(System.Data.Entity.Strings.ELinq_EdmFunctionDirectCall);
68 /// Proxy for the function SqlServer.ENVELOPECENTER
70 [EdmFunction("SqlServer", "ENVELOPECENTER")]
71 public static System.Data.Spatial.DbGeography EnvelopeCenter(System.Data.Spatial.DbGeography geographyValue)
73 throw EntityUtil.NotSupported(System.Data.Entity.Strings.ELinq_EdmFunctionDirectCall);
77 /// Proxy for the function SqlServer.FILTER
79 [EdmFunction("SqlServer", "FILTER")]
80 public static System.Boolean? Filter(System.Data.Spatial.DbGeography geographyValue, System.Data.Spatial.DbGeography geographyOther)
82 throw EntityUtil.NotSupported(System.Data.Entity.Strings.ELinq_EdmFunctionDirectCall);
86 /// Proxy for the function SqlServer.INSTANCEOF
88 [EdmFunction("SqlServer", "INSTANCEOF")]
89 public static System.Boolean? InstanceOf(System.Data.Spatial.DbGeography geographyValue, System.String geometryTypeName)
91 throw EntityUtil.NotSupported(System.Data.Entity.Strings.ELinq_EdmFunctionDirectCall);
95 /// Proxy for the function SqlServer.NUMRINGS
97 [EdmFunction("SqlServer", "NUMRINGS")]
98 [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", MessageId = "Num", Justification = "Naming convention prescribed by OGC specification")]
99 public static System.Int32? NumRings(System.Data.Spatial.DbGeography geographyValue)
101 throw EntityUtil.NotSupported(System.Data.Entity.Strings.ELinq_EdmFunctionDirectCall);
105 /// Proxy for the function SqlServer.REDUCE
107 [EdmFunction("SqlServer", "REDUCE")]
108 public static System.Data.Spatial.DbGeography Reduce(System.Data.Spatial.DbGeography geographyValue, System.Double? tolerance)
110 throw EntityUtil.NotSupported(System.Data.Entity.Strings.ELinq_EdmFunctionDirectCall);
114 /// Proxy for the function SqlServer.RINGN
116 [EdmFunction("SqlServer", "RINGN")]
117 public static System.Data.Spatial.DbGeography RingN(System.Data.Spatial.DbGeography geographyValue, System.Int32? index)
119 throw EntityUtil.NotSupported(System.Data.Entity.Strings.ELinq_EdmFunctionDirectCall);
123 /// Proxy for the function SqlServer.POINTGEOMETRY
125 [EdmFunction("SqlServer", "POINTGEOMETRY")]
126 [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", MessageId = "x", Justification = "Naming convention prescribed by OGC specification")]
127 [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", MessageId = "y", Justification = "Naming convention prescribed by OGC specification")]
128 public static System.Data.Spatial.DbGeometry PointGeometry(System.Double? xCoordinate, System.Double? yCoordinate, System.Int32? spatialReferenceId)
130 throw EntityUtil.NotSupported(System.Data.Entity.Strings.ELinq_EdmFunctionDirectCall);
134 /// Proxy for the function SqlServer.ASTEXTZM
136 [EdmFunction("SqlServer", "ASTEXTZM")]
137 public static System.String AsTextZM(System.Data.Spatial.DbGeometry geometryValue)
139 throw EntityUtil.NotSupported(System.Data.Entity.Strings.ELinq_EdmFunctionDirectCall);
143 /// Proxy for the function SqlServer.BUFFERWITHTOLERANCE
145 [EdmFunction("SqlServer", "BUFFERWITHTOLERANCE")]
146 public static System.Data.Spatial.DbGeometry BufferWithTolerance(System.Data.Spatial.DbGeometry geometryValue, System.Double? distance, System.Double? tolerance, System.Boolean? relative)
148 throw EntityUtil.NotSupported(System.Data.Entity.Strings.ELinq_EdmFunctionDirectCall);
152 /// Proxy for the function SqlServer.INSTANCEOF
154 [EdmFunction("SqlServer", "INSTANCEOF")]
155 public static System.Boolean? InstanceOf(System.Data.Spatial.DbGeometry geometryValue, System.String geometryTypeName)
157 throw EntityUtil.NotSupported(System.Data.Entity.Strings.ELinq_EdmFunctionDirectCall);
161 /// Proxy for the function SqlServer.FILTER
163 [EdmFunction("SqlServer", "FILTER")]
164 public static System.Boolean? Filter(System.Data.Spatial.DbGeometry geometryValue, System.Data.Spatial.DbGeometry geometryOther)
166 throw EntityUtil.NotSupported(System.Data.Entity.Strings.ELinq_EdmFunctionDirectCall);
170 /// Proxy for the function SqlServer.MAKEVALID
172 [EdmFunction("SqlServer", "MAKEVALID")]
173 public static System.Data.Spatial.DbGeometry MakeValid(System.Data.Spatial.DbGeometry geometryValue)
175 throw EntityUtil.NotSupported(System.Data.Entity.Strings.ELinq_EdmFunctionDirectCall);
179 /// Proxy for the function SqlServer.REDUCE
181 [EdmFunction("SqlServer", "REDUCE")]
182 public static System.Data.Spatial.DbGeometry Reduce(System.Data.Spatial.DbGeometry geometryValue, System.Double? tolerance)
184 throw EntityUtil.NotSupported(System.Data.Entity.Strings.ELinq_EdmFunctionDirectCall);