Beispiel #1
0
        /// <summary>
        /// Appends a correlated table-valued parameter from the current values, e.g. <c>@TP0 T0</c>, to the projection buffer.
        /// </summary>
        /// <param name="projection">The current projection.</param>
        /// <param name="tblAlias">The table alias to qualify each column name with.</param>
        /// <returns>A new attribute containing the appended buffer.</returns>
        public static IProjectionAttribute Tvp(this IProjection projection, string tblAlias = null)
        {
            IProjectionAttribute attribute = projection.TvpName().Append(" ");

            if (tblAlias != null)
            {
                return(attribute.Append(attribute.Context.Domain.Dialect.Identifier(tblAlias)));
            }
            else
            {
                return(attribute.Ali());
            }
        }
Beispiel #2
0
 /// <summary>
 /// Appends a correlated table-valued parameter from the current values, e.g. <c>@TP0 T0</c>, to the projection buffer.
 /// </summary>
 /// <param name="projection">The current projection.</param>
 /// <returns>A new attribute containing the appended buffer.</returns>
 public static IProjectionAttribute Tvp(this IProjection projection) => projection.TvpName().Append(" ").Ali();