Skip to content

Context Database ExecuteSqlInterpolatedAsync Executes Non Query #2088

Open
@ebeltran1981

Description

@ebeltran1981

I am trying to get a query result from a script that builds a temp table . I am executing: ExecuteSqlInterpolatedAsync and ExecuteSqlRawAsync and they both return an int... digging a bit more, found that both in the underline code execute this: rawSqlCommand.RelationalCommand.ExecuteNonQuery

how am I supposed to execute a query when I dont have an entity in the database? The documentation suggests that this is possible.

thanks for your help.


Document Details

Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions