CarrotCMSData/LinqToSqlExtensions.cs
/// <summary>
/// Returns the Transact SQL string representation the LINQ <see cref="IProvider"/> command text and parameters used that would be issued to update all entities from the collection with a single update command.
/// </summary>
/// <typeparam name="TEntity">Represents the object type for rows contained in <paramref name="table"/>.</typeparam>
/// <param name="table">Represents a table for a particular type in the underlying database containing rows are to be updated.</param>
/// <param name="entities">Represents the collection of items which are to be updated in <paramref name="table"/>.</param>
/// <param name="evaluator">A Lambda expression returning a <typeparamref name="TEntity"/> that defines the update assignments to be performed on each item in <paramref name="entities"/>.</param>
/// <returns>Returns the Transact SQL string representation the LINQ <see cref="IProvider"/> command text and parameters used that would be issued to update all entities from the collection with a single update command.</returns>
/// <remarks>This method is useful for debugging purposes or when LINQ generated queries need to be passed to developers without LINQ/LINQPad.</remarks>
Returns the Transact SQL string representation the LINQ  command text and parameters used that would be issued to update all entities from the collection with a single update command.
Returns the Transact SQL string representation the LINQ command text and parameters used that would be issued to update all entities from the collection with a single update command .
public static string UpdateBatchSQL<TEntity>( this Table<TEntity> table, IQueryable<TEntity> entities, Expression<Func<TEntity, TEntity>> evaluator ) where TEntity : class
		{
			DbCommand update = table.GetUpdateBatchCommand<TEntity>( entities, evaluator );
			return update.PreviewCommandText( true );
		}
public static string UpdateBatchSQL < TEntity > ( this Table < TEntity > table , IQueryable < TEntity > entities , Expression < Func < TEntity , TEntity > > evaluator ) where TEntity : class { DbCommand update = table . GetUpdateBatchCommand < TEntity > ( entities , evaluator ) ; return update . PreviewCommandText ( true ) ; }
Returns the Transact SQL string representation the LINQ  command text and parameters used that would be issued to update all entities from the collection with a single update command.
Returns the Transact SQL string representation the LINQ command text and parameters used that would be issued to update all entities from the collection with a single update command .
Returns the Transact SQL string representation the LINQ  command text and parameters used that would be issued to update all entities from the collection with a single update command.
Returns the Transact SQL string representation the LINQ command text and parameters used that would be issued to update all entities from the collection with a single update command .
Table<TEntity>
this
entities
IQueryable<TEntity>
Represents the collection of items which are to be updated in .
Represents the collection of items which are to be updated in .
evaluator
Expression<Func<TEntity, TEntity>>
A Lambda expression returning a  that defines the update assignments to be performed on each item in .
A Lambda expression returning a that defines the update assignments to be performed on each item in .
table
Represents a table for a particular type in the underlying database containing rows are to be updated.
Represents a table for a particular type in the underlying database containing rows are to be updated .
typeparam
Represents the object type for rows contained in .
Represents the object type for rows contained in .
remarks
This method is useful for debugging purposes or when LINQ generated queries need to be passed to developers without LINQ/LINQPad.
This method is useful for debugging purposes or when LINQ generated queries need to be passed to developers without LINQ / LINQPad .