title: Entity Framework: SqlGeography vs DbGeography
body: <p>What is the difference, or intended purpose of these two object that represent the same Geography datatype in a Microsoft SQL Database?</p>
  
  <pre><code>System.Data.Entity.Spatial.DbGeography
  </code></pre>
  
  <p>and</p>
  
  <pre><code>Microsoft.SqlServer.Types.SqlGeography
  </code></pre>
  
  <p>They can't be cast between each other, but <code>SqlGeography</code> has additional command when it comes to creating points, polygons etc.</p>
  
  <p>I'm thinking that <code>System.Data.Entity</code> is for use with Entity Framework only, whilst <code>Microsoft.SqlServer</code> is for use when using the <code>SqlCommand</code> directly instead?</p>