, , , : LINQ to SQL
imo
:
GetDeleteBatchCommand. . :
private static DbCommand GetDeleteBatchCommand<TEntity>(this Table<TEntity> table, IQueryable<TEntity> entities) where TEntity : class
{
var deleteCommand = table.Context.GetCommand(entities);
deleteCommand.CommandText = string.Format("DELETE {0}\r\n", table.GetDbName()) + GetBatchJoinQuery<TEntity>(table, entities);
return deleteCommand;
}