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 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 the Transact SQL 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 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 delete all entities from the collection with a single delete command.
Returns the Transact SQL 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 DeleteBatchSQL<TEntity>( this Table<TEntity> table, IQueryable<TEntity> entities ) where TEntity : class
		{
			DbCommand delete = table.GetDeleteBatchCommand<TEntity>( entities );
			return delete.PreviewCommandText( true );
		}
public static string DeleteBatchSQL < TEntity > ( this Table < TEntity > table , IQueryable < TEntity > entities ) where TEntity : class { DbCommand delete = table . GetDeleteBatchCommand < TEntity > ( entities ) ; return delete . PreviewCommandText ( true ) ; }
Returns the Transact SQL 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 the Transact SQL 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 the Transact SQL 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 the Transact SQL 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 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 .