Skip to content
Marcin Sulecki edited this page Sep 12, 2017 · 4 revisions

Uruchomienie zapytania SQL (fire and forgot)

context
  .Database
  .ExecuteSqlCommand($"UPDATE Users SET FirstName = {value} WHERE Id = {id}");

Pobranie danych

context
  .Database
  .FromSql<User>($"SELECT * FROM Users WHERE LastName like {lastname}");
Clone this wiki locally