/// <summary> /// Adds a <b>SQL Server</b> <see cref="TableValuedParameter"/>. /// </summary> /// <param name="name">The parameter name.</param> /// <param name="tvp">The <see cref="TableValuedParameter"/>.</param> /// <returns>The current <see cref="DatabaseCommand"/> instance to support chaining (fluent interface).</returns> /// <remarks>This specifically implies that the <see cref="SqlParameter"/> is being used; if not then an exception will be thrown.</remarks> public DatabaseCommand TableValuedParam(string name, TableValuedParameter tvp) { Parameters.TableValuedParam(name, tvp); return(this); }
/// <summary> /// Adds a <b>SQL Server</b> <see cref="TableValuedParameter"/>. /// </summary> /// <param name="name">The parameter name.</param> /// <param name="tvp">The <see cref="TableValuedParameter"/>.</param> /// <returns>The current <see cref="DatabaseParameters"/> instance to support chaining (fluent interface).</returns> /// <remarks>This specifically implies that the <see cref="SqlParameter"/> is being used; if not then an exception will be thrown.</remarks> public DatabaseParameters TableValuedParam(string name, TableValuedParameter tvp) { AddTableValuedParameter(name, tvp); return(this); }