Пример #1
0
        /// <summary>
        /// Appends the current correlated table name, e.g. <c>"MyTable" T0</c>, to the attribute buffer.
        /// </summary>
        /// <param name="attribute">The current attribute.</param>
        /// <param name="tblAlias">An alternative alias to use for the current table.</param>
        /// <returns>A new attribute containing the appended buffer.</returns>
        public static IProjectionAttribute Tbl(this IProjectionAttribute attribute, string tblAlias = null)
        {
            attribute = attribute.TblName().Append(" ");

            if (tblAlias != null)
            {
                return(attribute.Append(attribute.Context.Domain.Dialect.Identifier(tblAlias)));
            }
            else
            {
                return(attribute.Ali());
            }
        }