Use raw SQL in C#

PHOTO EMBED

Wed Feb 02 2022 22:00:17 GMT+0000 (Coordinated Universal Time)

Saved by @JamonJamon #c# #entityframework

var minPrice = 5.00m;
Product = await _context.Products
	.FromSqlInterpolated($"SELECT * FROM dbo.Products WHERE Price > {minPrice}")
	.ToListAsync();
content_copyCOPY