- Start the database:
docker run -e "ACCEPT_EULA=Y" -e "SA_PASSWORD=Password!" -p 1433:1433 --name sql1 -h sql1 -d mcr.microsoft.com/mssql/server:2019-latest
- Start the project
dotnet run
- Execute the following query against the endpoint:
query {
users {
name
}
}
You can see the projected field in the EF log:
Executed DbCommand (10ms) [Parameters=[], CommandType='Text', CommandTimeout='30']
SELECT [u].[Name], [u].[AddressId]
FROM [Users] AS [u]