Table-Valued Parameters: Basics
First, what is Table-Valued Parameters ? Table-valued parameters provide an easy way to marshal multiple rows of data from a client application to SQL Server without requiring multiple round trips or...
View ArticleTable-Valued Parameters: Basics
You can use table-valued parameters (TVP) to send multiple rows of data to a Transact-SQL statement or a routine, such as a stored procedure or function, without creating a temporary table or many...
View ArticleTable-Valued Parameters: CFQL operators
CodeFluent Query Language (CFQL) allows to quickly create simple methods. CFQL provides support for common operations with Table Value Parameters. To show result of queries we will use the following...
View ArticleTable-Valued Parameters: Use IEnumerable instead of an array
We’ve seen that CodeFluent Entities supports Table-Valued Parameters. The generated .NET method has a parameter of type array: public static CustomerCollection LoadByIds(System.Guid[] ids) What you may...
View ArticleTable-Valued Parameters: Multi-Columns
In previous blog posts we’ve seen how to use Table-Valued Parameters (TVP) that contains one column. Today we’ll see how to use TVP that contains two columns or more. First we create our model:...
View ArticleTable-Valued Parameters: Reuse model collection types
This is the last post of the Table-Valued Parameters (TVP) series. In the previous post we saw we can use TVP with CodeFluent Entities. We started with a single column TVP, then we create a more...
View Article