100 references to Geography
System.Data.Entity (99)
System\Data\Common\CommandTrees\AbstractExpressions.cs (1)
540
return ExpressionBuilder.DbExpressionBuilder.CreatePrimitiveNullExpression(PrimitiveTypeKind.
Geography
);
System\Data\Common\CommandTrees\ExpressionBuilder\DbExpressionBuilder.cs (2)
43
private static readonly DbNullExpression _geographyNull = Null(EdmProviderManifest.Instance.GetCanonicalModelTypeUsage(PrimitiveTypeKind.
Geography
));
2676
case PrimitiveTypeKind.
Geography
:
System\Data\Common\CommandTrees\ExpressionBuilder\Internal\ArgumentValidation.cs (1)
789
if (!(Helper.IsGeographicType(primitiveType) && valueKind == PrimitiveTypeKind.
Geography
)
System\Data\Common\CommandTrees\Internal\ExpressionKeyGen.cs (1)
266
case PrimitiveTypeKind.
Geography
:
System\Data\Common\Internal\Materialization\Shaper.cs (2)
619
Debug.Assert(spatialTypeKind == PrimitiveTypeKind.
Geography
|| spatialTypeKind == PrimitiveTypeKind.Geometry, "Spatial primitive type kind is not geography or geometry?");
622
if (spatialTypeKind == PrimitiveTypeKind.
Geography
)
System\Data\Common\Internal\Materialization\Translator.cs (1)
1073
primitiveColumnType = Helper.IsGeographicType((PrimitiveType)columnType.EdmType) ? PrimitiveTypeKind.
Geography
: PrimitiveTypeKind.Geometry;
System\Data\Common\Utils\MetadataHelper.cs (1)
123
spatialNormalizedEdmType = PrimitiveType.GetEdmPrimitiveType(isGeographic ? PrimitiveTypeKind.
Geography
: PrimitiveTypeKind.Geometry);
System\Data\EntityModel\SchemaObjectModel\TypeUsageBuilder.cs (1)
247
case PrimitiveTypeKind.
Geography
:
System\Data\Mapping\Update\Internal\Propagator.ExtentPlaceholderCreator.cs (1)
81
typeDefaultMap[PrimitiveTypeKind.
Geography
] = DbGeography.FromText("POINT EMPTY");
System\Data\Metadata\Edm\PrimitiveType.cs (1)
167
case PrimitiveTypeKind.
Geography
:
System\Data\Metadata\Edm\Provider\ClrProviderManifest.cs (3)
138
primitiveTypeKind = PrimitiveTypeKind.
Geography
;
214
primitiveTypes[(int)PrimitiveTypeKind.
Geography
] = CreatePrimitiveType(typeof(DbGeography), PrimitiveTypeKind.
Geography
);
System\Data\Metadata\Edm\Provider\EdmProviderManifest.cs (7)
148
primitiveTypes[(int)PrimitiveTypeKind.
Geography
] = new PrimitiveType();
172
InitializePrimitiveType(primitiveTypes[(int)PrimitiveTypeKind.
Geography
], PrimitiveTypeKind.
Geography
, EdmConstants.Geography, typeof(DbGeography));
275
list = EdmProviderManifest.GetInitialFacetDescriptions(PrimitiveTypeKind.
Geography
);
276
applicableType = _primitiveTypes[(int)PrimitiveTypeKind.
Geography
];
459
case PrimitiveTypeKind.
Geography
:
819
PrimitiveTypeKind.
Geography
);
System\Data\Metadata\Edm\Provider\EdmProviderManifestSpatialFunctions.cs (66)
98
functions.AddFunction(PrimitiveTypeKind.
Geography
, "GeographyFromText", PrimitiveTypeKind.String, "geographyText");
99
functions.AddFunction(PrimitiveTypeKind.
Geography
, "GeographyFromText", PrimitiveTypeKind.String, "geographyText", PrimitiveTypeKind.Int32, "srid");
100
functions.AddFunction(PrimitiveTypeKind.
Geography
, "GeographyPointFromText", PrimitiveTypeKind.String, "pointText", PrimitiveTypeKind.Int32, "srid");
101
functions.AddFunction(PrimitiveTypeKind.
Geography
, "GeographyLineFromText", PrimitiveTypeKind.String, "lineText", PrimitiveTypeKind.Int32, "srid");
102
functions.AddFunction(PrimitiveTypeKind.
Geography
, "GeographyPolygonFromText", PrimitiveTypeKind.String, "polygonText", PrimitiveTypeKind.Int32, "srid");
103
functions.AddFunction(PrimitiveTypeKind.
Geography
, "GeographyMultiPointFromText", PrimitiveTypeKind.String, "multiPointText", PrimitiveTypeKind.Int32, "srid");
104
functions.AddFunction(PrimitiveTypeKind.
Geography
, "GeographyMultiLineFromText", PrimitiveTypeKind.String, "multiLineText", PrimitiveTypeKind.Int32, "srid");
105
functions.AddFunction(PrimitiveTypeKind.
Geography
, "GeographyMultiPolygonFromText", PrimitiveTypeKind.String, "multiPolygonText", PrimitiveTypeKind.Int32, "srid");
106
functions.AddFunction(PrimitiveTypeKind.
Geography
, "GeographyCollectionFromText", PrimitiveTypeKind.String, "geographyCollectionText", PrimitiveTypeKind.Int32, "srid");
107
functions.AddFunction(PrimitiveTypeKind.
Geography
, "GeographyFromBinary", PrimitiveTypeKind.Binary, "geographyBytes", PrimitiveTypeKind.Int32, "srid");
108
functions.AddFunction(PrimitiveTypeKind.
Geography
, "GeographyFromBinary", PrimitiveTypeKind.Binary, "geographyBytes");
109
functions.AddFunction(PrimitiveTypeKind.
Geography
, "GeographyPointFromBinary", PrimitiveTypeKind.Binary, "pointBytes", PrimitiveTypeKind.Int32, "srid");
110
functions.AddFunction(PrimitiveTypeKind.
Geography
, "GeographyLineFromBinary", PrimitiveTypeKind.Binary, "lineBytes", PrimitiveTypeKind.Int32, "srid");
111
functions.AddFunction(PrimitiveTypeKind.
Geography
, "GeographyPolygonFromBinary", PrimitiveTypeKind.Binary, "polygonBytes", PrimitiveTypeKind.Int32, "srid");
112
functions.AddFunction(PrimitiveTypeKind.
Geography
, "GeographyMultiPointFromBinary", PrimitiveTypeKind.Binary, "multiPointBytes", PrimitiveTypeKind.Int32, "srid");
113
functions.AddFunction(PrimitiveTypeKind.
Geography
, "GeographyMultiLineFromBinary", PrimitiveTypeKind.Binary, "multiLineBytes", PrimitiveTypeKind.Int32, "srid");
114
functions.AddFunction(PrimitiveTypeKind.
Geography
, "GeographyMultiPolygonFromBinary", PrimitiveTypeKind.Binary, "multiPolygonBytes", PrimitiveTypeKind.Int32, "srid");
115
functions.AddFunction(PrimitiveTypeKind.
Geography
, "GeographyCollectionFromBinary", PrimitiveTypeKind.Binary, "geographyCollectionBytes", PrimitiveTypeKind.Int32, "srid");
116
functions.AddFunction(PrimitiveTypeKind.
Geography
, "GeographyFromGml", PrimitiveTypeKind.String, "geographyGml");
117
functions.AddFunction(PrimitiveTypeKind.
Geography
, "GeographyFromGml", PrimitiveTypeKind.String, "geographyGml", PrimitiveTypeKind.Int32, "srid");
118
functions.AddFunction(PrimitiveTypeKind.Int32, "CoordinateSystemId", PrimitiveTypeKind.
Geography
, "geographyValue");
119
functions.AddFunction(PrimitiveTypeKind.String, "SpatialTypeName", PrimitiveTypeKind.
Geography
, "geographyValue");
120
functions.AddFunction(PrimitiveTypeKind.Int32, "SpatialDimension", PrimitiveTypeKind.
Geography
, "geographyValue");
121
functions.AddFunction(PrimitiveTypeKind.Binary, "AsBinary", PrimitiveTypeKind.
Geography
, "geographyValue");
122
functions.AddFunction(PrimitiveTypeKind.String, "AsGml", PrimitiveTypeKind.
Geography
, "geographyValue");
123
functions.AddFunction(PrimitiveTypeKind.String, "AsText", PrimitiveTypeKind.
Geography
, "geographyValue");
124
functions.AddFunction(PrimitiveTypeKind.Boolean, "IsEmptySpatial", PrimitiveTypeKind.
Geography
, "geographyValue");
125
functions.AddFunction(PrimitiveTypeKind.Boolean, "SpatialEquals", PrimitiveTypeKind.
Geography
, "geographyValue1", PrimitiveTypeKind.
Geography
, "geographyValue2");
126
functions.AddFunction(PrimitiveTypeKind.Boolean, "SpatialDisjoint", PrimitiveTypeKind.
Geography
, "geographyValue1", PrimitiveTypeKind.
Geography
, "geographyValue2");
127
functions.AddFunction(PrimitiveTypeKind.Boolean, "SpatialIntersects", PrimitiveTypeKind.
Geography
, "geographyValue1", PrimitiveTypeKind.
Geography
, "geographyValue2");
128
functions.AddFunction(PrimitiveTypeKind.
Geography
, "SpatialBuffer", PrimitiveTypeKind.
Geography
, "geographyValue", PrimitiveTypeKind.Double, "distance");
129
functions.AddFunction(PrimitiveTypeKind.Double, "Distance", PrimitiveTypeKind.
Geography
, "geographyValue1", PrimitiveTypeKind.
Geography
, "geographyValue2");
130
functions.AddFunction(PrimitiveTypeKind.
Geography
, "SpatialIntersection", PrimitiveTypeKind.
Geography
, "geographyValue1", PrimitiveTypeKind.
Geography
, "geographyValue2");
131
functions.AddFunction(PrimitiveTypeKind.
Geography
, "SpatialUnion", PrimitiveTypeKind.
Geography
, "geographyValue1", PrimitiveTypeKind.
Geography
, "geographyValue2");
132
functions.AddFunction(PrimitiveTypeKind.
Geography
, "SpatialDifference", PrimitiveTypeKind.
Geography
, "geometryValue1", PrimitiveTypeKind.
Geography
, "geometryValue2");
133
functions.AddFunction(PrimitiveTypeKind.
Geography
, "SpatialSymmetricDifference", PrimitiveTypeKind.
Geography
, "geometryValue1", PrimitiveTypeKind.
Geography
, "geometryValue2");
134
functions.AddFunction(PrimitiveTypeKind.Int32, "SpatialElementCount", PrimitiveTypeKind.
Geography
, "geographyValue");
135
functions.AddFunction(PrimitiveTypeKind.
Geography
, "SpatialElementAt", PrimitiveTypeKind.
Geography
, "geographyValue", PrimitiveTypeKind.Int32, "nValue");
136
functions.AddFunction(PrimitiveTypeKind.Double, "Latitude", PrimitiveTypeKind.
Geography
, "geographyValue");
137
functions.AddFunction(PrimitiveTypeKind.Double, "Longitude", PrimitiveTypeKind.
Geography
, "geographyValue");
138
functions.AddFunction(PrimitiveTypeKind.Double, "Elevation", PrimitiveTypeKind.
Geography
, "geographyValue");
139
functions.AddFunction(PrimitiveTypeKind.Double, "Measure", PrimitiveTypeKind.
Geography
, "geographyValue");
140
functions.AddFunction(PrimitiveTypeKind.Double, "SpatialLength", PrimitiveTypeKind.
Geography
, "geographyValue");
141
functions.AddFunction(PrimitiveTypeKind.
Geography
, "StartPoint", PrimitiveTypeKind.
Geography
, "geographyValue");
142
functions.AddFunction(PrimitiveTypeKind.
Geography
, "EndPoint", PrimitiveTypeKind.
Geography
, "geographyValue");
143
functions.AddFunction(PrimitiveTypeKind.Boolean, "IsClosedSpatial", PrimitiveTypeKind.
Geography
, "geographyValue");
144
functions.AddFunction(PrimitiveTypeKind.Int32, "PointCount", PrimitiveTypeKind.
Geography
, "geographyValue");
145
functions.AddFunction(PrimitiveTypeKind.
Geography
, "PointAt", PrimitiveTypeKind.
Geography
, "geographyValue", PrimitiveTypeKind.Int32, "nValue");
146
functions.AddFunction(PrimitiveTypeKind.Double, "Area", PrimitiveTypeKind.
Geography
, "geographyValue");
System\Data\Metadata\Helper.cs (3)
407
return kind == PrimitiveTypeKind.
Geography
|| IsStrongGeographicTypeKind(kind);
575
if (IsGeographicType(primitiveType) && primitiveType.PrimitiveTypeKind != PrimitiveTypeKind.
Geography
)
577
return PrimitiveType.GetEdmPrimitiveType(PrimitiveTypeKind.
Geography
);
System\Data\Metadata\ObjectItemCollection.cs (1)
558
modelType = PrimitiveTypeKind.
Geography
;
System\Data\Query\PlanCompiler\NominalTypeEliminator.cs (1)
1844
PlanCompiler.Assert(md.TypeSemantics.IsPrimitiveType(n.Child0.Op.Type, md.PrimitiveTypeKind.
Geography
) || md.TypeSemantics.IsPrimitiveType(n.Child0.Op.Type, md.PrimitiveTypeKind.Geometry), "Union spatial type expected.");
System\Data\SqlClient\IDbSpatialValue.cs (1)
105
public PrimitiveTypeKind PrimitiveType { get { return PrimitiveTypeKind.
Geography
; } }
System\Data\SqlClient\SqlGen\SqlFunctionCallHandler.cs (2)
744
Debug.Assert(spatialTypeKind == PrimitiveTypeKind.
Geography
|| spatialTypeKind == PrimitiveTypeKind.Geometry, "Spatial function does not refer to a valid spatial primitive type kind?");
745
if (spatialTypeKind == PrimitiveTypeKind.
Geography
)
System\Data\SqlClient\SqlGen\SqlGenerator.cs (1)
986
case PrimitiveTypeKind.
Geography
:
System\Data\SqlClient\SqlProviderManifest.cs (1)
543
case PrimitiveTypeKind.
Geography
:
System\Data\SqlClient\SqlProviderServices.cs (1)
494
case PrimitiveTypeKind.
Geography
:
System.Data.Entity.Design (1)
System\Data\Entity\Design\EntityStoreSchemaGenerator\EntityStoreSchemaGenerator.LoadMethodSessionState.cs (1)
150
(primitiveType.PrimitiveTypeKind == PrimitiveTypeKind.
Geography
|| primitiveType.PrimitiveTypeKind == PrimitiveTypeKind.Geometry))