executesqlinterpolatedasync stored procedure

63

executesqlinterpolatedasync stored procedure -

var res = await _context
           .Restaurants
           .FromSqlInterpolated($"UpdateRestaurantInformation {restaurant.RestaurantId}, {restaurant.RestaurantName}, {restaurant.Location.LocationId}").ToListAsync();

return res.SingleOrDefault();

Comments

Submit
0 Comments