filmov
tv
Use SqlQuery in .NET EF Core 7 to obtain scalar data with SQL

Показать описание
Authorised Territory code examples - This .NET Entity Framework 7 C# #tutorial shows how to use SqlQuery to retrieve scalar data.
First, we install EF nuget packages and create database context.
Next, we retrieve value of a single field from a table using SQL and SqlQuery.
Finally, we get a list of values using select statement and display the list in a console.
First, we install EF nuget packages and create database context.
Next, we retrieve value of a single field from a table using SQL and SqlQuery.
Finally, we get a list of values using select statement and display the list in a console.