Tools/LinqToSqlExtensions.cs
/// <summary>
/// Returns a string representation the LINQ <see cref="IProvider"/> command text and parameters used that would be issued to delete all entities from the collection with a single delete 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 deleted.</param>
/// <param name="entities">Represents the collection of items which are to be removed from <paramref name="table"/>.</param>
/// <returns>Returns a string representation the LINQ <see cref="IProvider"/> command text and parameters used that would be issued to delete all entities from the collection with a single delete 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 delete all entities from the collection with a single delete command.
Returns a string representation the LINQ command text and parameters used that would be issued to delete all entities from the collection with a single delete command .
public static string DeleteBatchPreview<TEntity>( this Table<TEntity> table, IQueryable<TEntity> entities ) where TEntity : class
		{
			DbCommand delete = table.GetDeleteBatchCommand<TEntity>( entities );
			return delete.PreviewCommandText( false ) + table.Context.GetLog();
		}
public static string DeleteBatchPreview < TEntity > ( this Table < TEntity > table , IQueryable < TEntity > entities ) where TEntity : class { DbCommand delete = table . GetDeleteBatchCommand < TEntity > ( entities ) ; return delete . PreviewCommandText ( false ) + table . Context . GetLog ( ) ; }
Returns a string representation the LINQ  command text and parameters used that would be issued to delete all entities from the collection with a single delete command.
Returns a string representation the LINQ command text and parameters used that would be issued to delete all entities from the collection with a single delete command .
Returns a string representation the LINQ  command text and parameters used that would be issued to delete all entities from the collection with a single delete command.
Returns a string representation the LINQ command text and parameters used that would be issued to delete all entities from the collection with a single delete command .
Table<TEntity>
this
entities
IQueryable<TEntity>
Represents the collection of items which are to be removed from .
Represents the collection of items which are to be removed from .
table
Represents a table for a particular type in the underlying database containing rows are to be deleted.
Represents a table for a particular type in the underlying database containing rows are to be deleted .
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 .