title: How to delete records with FromSqlRaw in ASP.NET Core 5?
body: <p>I am trying to delete all records in a PostgresSQL database table from ASP.NET Core 5.</p>
  <p>However, I get this error:</p>
  <blockquote>
  <p>syntax error at or near &quot;FROM&quot;</p>
  </blockquote>
  <p>This is my code:</p>
  <pre><code>string Query = &quot;DELETE FROM public.\&quot;MyTable\&quot;&quot;;
  var d = await _context.MyTable.FromSqlRaw(Query).AnyAsync();
  </code></pre>
  <p>How to delete records with <code>FromSQLRaw</code>?</p>