Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

executesqlinterpolatedasync stored procedure

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

return res.SingleOrDefault();
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #executesqlinterpolatedasync #stored #procedure
ADD COMMENT
Topic
Name
3+4 =