What is the difference, or intended purpose of these two object that represent the same Geography datatype in a Microsoft SQL Database?
System.Data.Entity.Spatial.DbGeography
and
Microsoft.SqlServer.Types.SqlGeography
They can't be cast between each other, but SqlGeography
has additional command when it comes to creating points, polygons etc.
I'm thinking that System.Data.Entity
is for use with Entity Framework only, whilst Microsoft.SqlServer
is for use when using the SqlCommand
directly instead?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…