title: What is the difference between ExecuteSqlCommand vs SqlQuery ? when doing a db access?
body: <p>I have had a couple of suggestions on how to access data from my database:</p>
  
  <pre><code>var allMyIds
      = context.Database.ExecuteSqlCommand("select id from AspNetUserLogins");
  
  var allMyIds
      = context.Database.SqlQuery&lt;string&gt;("select id from AspNetUserLogins");
  </code></pre>
  
  <p>Can someone explain the difference between these if there is any?</p>