@Cenk, Welcome to Microsoft Q&A, based on my test, I reproduced your problem.
As usual, FromSqlRaw method is used to query the data from the database.
If you want to execute some sqlcommand in ef core, you could try to use ExecuteSqlRaw method.
Here is a code example you could refer to.
MyContext context=new MyContext();
context.Database.ExecuteSqlRaw("TRUNCATE TABLE stus");
Based on my test, the above code could clear all the data of table stus.
Hope my code could help you.
Best Regards,
Jack
If the answer is the right solution, please click "Accept Answer" and upvote it.If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.