0

Is there a way to use SQL Server table-valued parameters in Entity Framework in a way that doesn't require you to use a stored procedure or string-based queries like context.Database.ExecuteSqlCommandAsync("") ?

Something similar to Dapper where I can pass a DataTable and specify the user-defined type name to use. Probably must be some sort of overload of IEnumerable<>.Contains() or .Join() so that I can build a join in a generated query.

The goal is to stay with expression trees and don't mess with strings.

marc_s
  • 732,580
  • 175
  • 1,330
  • 1,459
UserControl
  • 14,766
  • 20
  • 100
  • 187

0 Answers0