title: Q: How can I execute a query string in ASP.NET Core?
body: <p>I'm learning ASP.NET Core and I'm building a Web API with SQL Server.</p>
  
  <p>But with it hard to use LINQ because I just know a little about it, and can't use a complex query.</p>
  
  <p>That's why I want to use SQL query for it like </p>
  
  <pre><code>SELECT * 
  FROM A 
  WHERE A.ID = 1
  </code></pre>
  
  <p>How can I use it in ASP.NET Core?</p>
  
  <p>Thank for your help!</p>