Created
September 6, 2017 13:08
-
-
Save Blind-Striker/3aed645ce608d1d642dd9c846e9c698d to your computer and use it in GitHub Desktop.
EF Core 2.0 String Interpolation Example for Article
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var city = "İstanbul"; | |
using (var context = CreateContext()) | |
{ | |
context.Customers.FromSql($@" | |
SELECT * | |
FROM Customers | |
WHERE City = {city}"); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment