I did not try to do this, but by looking quickly at the EntLib data block, I see no easy way to achieve this. You can do this using the SqlClient object, but EntLib does not support the structured data type that you need to pass in the form of TVP.
If you are guaranteed to never need anything other than the SQL Server backend, then I suggest that you could use your SQLServer-specific connection and then use SqlParameters, but that could be detrimental to the purpose of using EntLib.
Rikalous
source share