Tools/LinqToSqlExtensions.cs
/// <summary>
/// Returns a 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 a 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 used in other utilities such as LINQPad.</remarks>
Returns a 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 a 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 UpdateBatchPreview<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( false ) + table.Context.GetLog();
		}
public static string UpdateBatchPreview < 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 ( false ) + table . Context . GetLog ( ) ; }
Returns a 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 a 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 a 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 a 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 used in other utilities such as LINQPad.
This method is useful for debugging purposes or when used in other utilities such as LINQPad .