@David Thielen, Welcome to Microsoft Q&A, If you want to delete a record based on the primary key and don't want to spend unnecessary overhead for it, I recommend that you use SQL RAW method to delete the record, like the following:
using (var context = new YourDbContext())
{
var sql = "DELETE FROM YourTable WHERE Id = {0}";
context.Database.ExecuteSqlRaw(sql, yourEntityId);
}
The above code delete the records in the sql server without loading the entity type.
Best Regards,
Jack
If the answer is helpful, please click "Accept Answer" and upvote it.
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.