更新时间:2023-12-05 19:21:40
Paul,
DbSet上的SqlQuery专门用于为集合返回实体类型实体的查询,以便跟踪它们。 
这是一个使用原始SQL的低级别调用,因此我们无法确定您提供的内容是查询还是其他任何内容。
您应该小心只向数据库发送查询。
The SqlQuery on DbSet is specifically intended for queries that bring back entities of the entity type for the set so that they can be tracked. This is a low-level call with raw SQL so we don’t have any way to determine if what you give us is a query or anything else. You should be careful to only send queries to the database.
谢谢,
Arthur